Skip to content

Commit 554ec1c

Browse files
committed
doc: make clear that Time::seconds is UTC.
1 parent 095c673 commit 554ec1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gix-date/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ pub use parse::function::parse;
2323
#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
2424
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
2525
pub struct Time {
26-
/// time in seconds since epoch.
26+
/// The seconds that passed since UNIX epoch. This makes it UTC, or `<seconds>+0000`.
2727
pub seconds: SecondsSinceUnixEpoch,
28-
/// time offset in seconds, may be negative to match the `sign` field.
28+
/// The time's offset in seconds, which may be negative to match the `sign` field.
2929
pub offset: OffsetInSeconds,
30-
/// the sign of `offset`, used to encode `-0000` which would otherwise loose sign information.
30+
/// the sign of `offset`, used to encode `-0000` which would otherwise lose sign information.
3131
pub sign: time::Sign,
3232
}
3333

0 commit comments

Comments
 (0)