Expand description
Date and time formatting routines.
Structsยง
- Delayed
Format - 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ยง
- Seconds
Format - 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 by
DelayedFormat
. - format_
item Deprecated - Formats single formatting item
- write_
hundreds ๐ - Equivalent to
{:02}
formatting for n < 100. - write_
rfc2822 ๐ - write datetimes like
Tue, 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