mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-13 23:17:05 +00:00
428dde12c7
Now supports 12-hour time, unpadded days, time on more patterns, AD/BC, and ISO 8601 negative years.
25 lines
891 B
Text
25 lines
891 B
Text
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
# ISO 8601 formats
|
|
year-monthnum-fullday['T'hour24:min:sec[ offset]]
|
|
year-monthnum-fullday[ hour24:min:sec[ offset]]
|
|
year-'W'isoweek[ hour24:min:sec[ offset]]
|
|
year-ordinal[ hour24:min:sec[ offset]]
|
|
--monthnum-day[ hour24:min:sec[ offset]]
|
|
|
|
# Dates like "Janaury 1, 1970"
|
|
monthname day[[','] year][ hour12:min:sec meridiem[ offset]][ adbc]
|
|
monthname day[[','] year][ hour24:min:sec[ offset]][ adbc]
|
|
|
|
# ctime dates
|
|
weekday monthname day[ hour24:min:sec] fullyear
|
|
|
|
# Astronomical dates like "1970 January 1"
|
|
year monthname day[ hour12:min:sec meridiem[ offset]][ adbc]
|
|
year monthname day[ hour24:min:sec[ offset]][ adbc]
|
|
|
|
# Today dates
|
|
hour12:min:sec meridiem[ offset]
|
|
hour24:min:sec[ offset]
|