Struct jujutsu_lib::backend::Timestamp
source · pub struct Timestamp {
pub timestamp: MillisSinceEpoch,
pub tz_offset: i32,
}Fields§
§timestamp: MillisSinceEpoch§tz_offset: i32Implementations§
source§impl Timestamp
impl Timestamp
pub fn now() -> Self
pub fn from_datetime<Tz: TimeZone<Offset = FixedOffset>>(
datetime: DateTime<Tz>
) -> Self
Trait Implementations§
source§impl Ord for Timestamp
impl Ord for Timestamp
source§impl PartialOrd<Timestamp> for Timestamp
impl PartialOrd<Timestamp> for Timestamp
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more