Struct below_common::dateutil::HgTime [−][src]
Expand description
A simple time structure that matches hg’s time representation.
Internally it’s unixtime (in GMT), and offset (GMT -1 = +3600).
Fields
unixtime: u64offset: i32Implementations
Parse a date string.
Return None if it cannot be parsed.
This function matches mercurial.util.parsedate, and can parse
some additional forms like 2 days ago.
It can also handle future forms like “ten hours from now” and “+10h”
Parse a date string as a range.
For example, Apr 2000 covers range Apr 1, 2000 to Apr 30, 2000.
Also support more explicit ranges:
- START to END
-
START
- < END
Trait Implementations
Performs the conversion.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for HgTime
impl UnwindSafe for HgTime
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self.