> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Resq common time

# time

### Functions

| Return                                  | Name                                            | Description                                                                     |
| --------------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------- |
| `void`                                  | [`to_proto_timestamp`](#to_proto_timestamp)     | Convert std::chrono::system\_clock::time\_point to google::protobuf::Timestamp. |
| `std::chrono::system_clock::time_point` | [`from_proto_timestamp`](#from_proto_timestamp) | Convert google::protobuf::Timestamp to std::chrono::system\_clock::time\_point. |

***

#### to\_proto\_timestamp

`inline`

```cpp theme={null}
inline void to_proto_timestamp(const std::chrono::system_clock::time_point & from, google::protobuf::Timestamp * to)
```

Convert std::chrono::system\_clock::time\_point to google::protobuf::Timestamp.

***

#### from\_proto\_timestamp

`inline`

```cpp theme={null}
inline std::chrono::system_clock::time_point from_proto_timestamp(const google::protobuf::Timestamp & from)
```

Convert google::protobuf::Timestamp to std::chrono::system\_clock::time\_point.
