proto-types 0.2.2

⚙️ Implementations for various common protobuf types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub(crate) const PACKAGE_PREFIX: &str = "google.protobuf";

pub(crate) const TIME_NANOS_MAX: i32 = NANOS_PER_SECOND - 1;
pub(crate) const NANOS_PER_SECOND: i32 = 1_000_000_000;

pub(crate) const SECONDS_PER_MINUTE: u64 = 60;
pub(crate) const SECONDS_PER_HOUR: u64 = 3600;
pub(crate) const SECONDS_PER_DAY: u64 = 86400;
pub(crate) const SECONDS_PER_WEEK: u64 = 604_800;
pub(crate) const SECONDS_PER_MONTH_AVG: u64 = 2_629_746;
pub(crate) const SECONDS_PER_YEAR_AVG: u64 = 31_556_952;