Crate gix_date

Source
Expand description

Date and time parsing similar to what git can do.

Note that this is not a general purpose time library.

§Feature Flags

  • serde — Data structures implement serde::Serialize and serde::Deserialize.

Modules§

parse
time

Structs§

Time
A timestamp with timezone.

Functions§

parse
Parse input as any time that Git can parse when inputting a date.
parse_header
Unlike parse() which handles all kinds of input, this function only parses the commit-header format like 1745582210 +0200.

Type Aliases§

OffsetInSeconds
time offset in seconds.
SecondsSinceUnixEpoch
The number of seconds since unix epoch.