Module chrono::format::formatting
source ยท Expand description
Date and time formatting routines.
Structsยง
- A temporary object which can be used as an argument to
format!
or others. This is normally constructed viaformat
methods of each date and time type.
Enumsยง
- Specific formatting options for seconds. This may be extended in the future, so exhaustive matching in external code is not recommended.
Functionsยง
- format
Deprecated Tries to format given arguments with given formatting items. Internally used byDelayedFormat
. - format_
item Deprecated Formats single formatting item - write_
hundreds ๐Equivalent to{:02}
formatting for n < 100. - write_
rfc2822 ๐write datetimes likeTue, 1 Jul 2003 10:52:37 +0200
, same as%a, %d %b %Y %H:%M:%S %z
- write_
rfc3339 ๐Writes the date, time and offset to the string. same as%Y-%m-%dT%H:%M:%S%.f%:z