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 via format 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ยง

  • formatDeprecated
    Tries to format given arguments with given formatting items. Internally used by DelayedFormat.
  • format_itemDeprecated
    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