Template:DataFormatRuby/en
Appearance
If the locale is not implemented on the host, this is how the date is displayed. The %
signs (and the letters following them, possibly prefixed with symbols for formatting options) indicate parts of a date. So do not translate them, but adjust the whole date pattern to the format used in your language's environment. For more details, see the PHP manual and Ruby manual entries for the strftime()
function.
- For date parts
%Y
– year with century (4 digits at least, e.g. "0009", "2021", may be negative for BCE years)%C
– year / 100 (rounded down, such as "20" in 2009)%y
– year % 100 ("00" to "99")
%m
– month number, zero-padded ("01" to "12")%-m
– month number, not padded ("1" to "12")%b
– abbreviated month name (e.g. "Jan")%B
– full month name (e.g. "January")
%d
– day number of the month, zero-padded ("01" to "31")%-d
– day number of the month, not padded ("1" to "31")%e
– day number of the month, blank-padded (" 1" to "31")
%a
– abbreviated day name of the week (e.g. "Sun")%A
– full day name of the week (e.g. "Sunday")
- For time parts
%H
– hour of the day, 24-hour clock, zero-padded ("00" to "23")%-H
– hour of the day, 24-hour clock, not padded ("0" to "23")
%M
– minute of the hour, zero-padded ("00" to "59")%S
– second of the minute, zero-padded ("00" to "59")