Skip to main content

datetime_to_instant

Function datetime_to_instant 

Source
pub(super) fn datetime_to_instant(dt: DateTime<Utc>) -> Instant
Expand description

Converts a UTC DateTime to an [Instant]; past maps to now, far future caps at now + 24h.