Skip to main content

Module timestamp

Module timestamp 

Source
Expand description

A module exporting timestamps types that can be encoded as Slugs.

Re-exportsยง

use crate::slug::BadSlug; ๐Ÿ”’
use crate::slug::Slug; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use derive_more::From; ๐Ÿ”’
use derive_more::Into; ๐Ÿ”’
use thiserror::Error; ๐Ÿ”’
use time::macros::format_description; ๐Ÿ”’
use time::OffsetDateTime; ๐Ÿ”’
use time::PrimitiveDateTime; ๐Ÿ”’
use tor_error::Bug; ๐Ÿ”’
use tor_error::into_internal; ๐Ÿ”’
use web_time_compat::SystemTime; ๐Ÿ”’

Structsยง

Iso8601TimeSlug
A UTC timestamp that can be encoded in ISO 8601 format, and that can be used as a Slug.

Enumsยง

BadIso8601TimeSlug
Error for an invalid Iso8601TimeSlug.

Constantsยง

ISO_8601SP_FMT ๐Ÿ”’
The format of a Iso8601TimeSlug.