Crate dayjs Copy item path Source pub use chrono ;Dayjs Dayjs struct representing a date and time with a time zone. TimeZone TimeZone enum for representing different time zone formats. Unit Unit enum for time operations DiffTime Trait for calculating differences between times DisplayTime Trait for displaying time in various formats. OperationTime Trait for operations on time, such as adding or subtracting durations. QueryTime Trait for querying and comparing times dayjs Create a new Dayjs instance with the current time. from_array Create a Dayjs instance from a JavaScript-style array [year, month, day, hour, minute, second, millisecond]
Note: month is 0-indexed (0-11) like JavaScript from_datetime Create a Dayjs from a chrono DateTime<Utc> from_format Parse with a custom format string from_int64 Get Dayjs instance from an integer timestamp. from_naive Create a Dayjs from a chrono NaiveDateTime (assumes UTC) from_str Get Dayjs instance from a string representation of date time. from_timezone Get the current time zone of the Dayjs instance. from_ymd Create a Dayjs instance from year, month, day, hour, minute, second from_ymdhms Create a Dayjs instance from year, month, day, hour, minute, second max Get the maximum of two Dayjs instances min Get the minimum of two Dayjs instances now Create a new Dayjs instance with the current time.
This is an alias for dayjs(). parse_date_time Parse date time string, supports ISO 8601 format (with timezone offset and ‘Z’ suffix) and UTC time timestamp UTC Timestamp, eg: 143164800