Skip to content

Commit

Permalink
doc: tweak definition of Timestamp
Browse files Browse the repository at this point in the history
The previous definition was slightly incorrect, or
at best, imprecise. It is actually pretty important
to mention that `Timestamp` is in the Unix time
scale (the same as the POSIX time scale), as this
clarifies that it behaves as if leap seconds don't
exist.

PR #134
  • Loading branch information
Plecra committed Sep 22, 2024
1 parent fee9e9f commit d3e0a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{
/// An instant in time represented as the number of nanoseconds since the Unix
/// epoch.
///
/// A timestamp is always in UTC.
/// A timestamp is always in the Unix timescale with a UTC offset of zero.
///
/// To obtain civil or "local" datetime units like year, month, day or hour, a
/// timestamp needs to be combined with a [`TimeZone`] to create a [`Zoned`].
Expand Down

0 comments on commit d3e0a16

Please sign in to comment.