Crate time [−] [src]
Simple time handling.
Usage
This crate is on crates.io and can be
used by adding time to the dependencies in your project's Cargo.toml.
[dependencies]
time = "0.1"
And this in your crate root:
extern crate time;
Structs
| Duration | 
                              ISO 8601 time duration with nanosecond precision. This also allows for the negative duration; see individual methods for details.  | 
                    
| PreciseTime | 
                              An opaque structure representing a moment in time.  | 
                    
| SteadyTime | 
                              A structure representing a moment in time.  | 
                    
| Timespec | 
                              A record specifying a time value in seconds and nanoseconds, where nanoseconds represent the offset from the given second.  | 
                    
| Tm | 
                              Holds a calendar date and time broken down into its components (year, month, day, and so on), also called a broken-down time value.  | 
                    
| TmFmt | 
                              A wrapper around a   | 
                    
Enums
| ParseError | 
Functions
| at | 
                              Returns the specified time in the local timezone  | 
                    
| at_utc | 
                              Returns the specified time in UTC  | 
                    
| empty_tm | |
| get_time | 
                              Returns the current time as a   | 
                    
| now | 
                              Returns the current time in the local timezone  | 
                    
| now_utc | 
                              Returns the current time in UTC  | 
                    
| precise_time_ns | 
                              Returns the current value of a high-resolution performance counter in nanoseconds since an unspecified epoch.  | 
                    
| precise_time_s | 
                              Returns the current value of a high-resolution performance counter in seconds since an unspecified epoch.  | 
                    
| strftime | 
                              Formats the time according to the format string.  | 
                    
| strptime | 
                              Parses the time from the string according to the format string.  | 
                    
| tzset |