userver: /data/code/userver/libraries/protobuf/include/userver/protobuf/datetime.hpp File Reference
Loading...
Searching...
No Matches
datetime.hpp File Reference

Detailed Description

Date and time protobuf utilities.

Definition in file datetime.hpp.

Go to the source code of this file.

#include <cstdint>
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  protobuf
 Top namespace for the userver protobuf library.

Functions

bool protobuf::IsValidDuration (std::int64_t seconds, std::int32_t nanos) noexcept
 Returns true if combination of seconds and nanos represent a valid google.protobuf.Duration.
bool protobuf::IsValidTimestamp (std::int64_t seconds, std::int32_t nanos) noexcept
 Returns true if combination of seconds and nanos represent a valid google.protobuf.Timestamp.

Variables

constexpr std::int64_t protobuf::kMinDurationSeconds = -315'576'000'000LL
constexpr std::int64_t protobuf::kMaxDurationSeconds = 315'576'000'000LL
constexpr std::int32_t protobuf::kMinDurationNanos = -999'999'999
constexpr std::int32_t protobuf::kMaxDurationNanos = 999'999'999
constexpr std::int64_t protobuf::kMinTimestampSeconds = -62'135'596'800LL
constexpr std::int64_t protobuf::kMaxTimestampSeconds = 253'402'300'799LL
constexpr std::int32_t protobuf::kMinTimestampNanos = 0
constexpr std::int32_t protobuf::kMaxTimestampNanos = 999'999'999