language[_country]
(like en, en_US, en_GB, fr_FR, etc.)
«» mtime -locale en_US -format EdMMM [now] Sat, Oct 5 «» mtime -locale ja_JP -format EdMMM [now] 10月5日(土)Alternatively, the optional kind argument specifies the format in which the date is displayed. The possible format values are: abbreviated, full, long, offset, short, standard. These values may be abbreviated. The default value is standard which corresponds to the fixed format YYYY-MM-DD HH:MM:SS. The offset format is like the standard format but also appends the time zone offset. The other formats provide localized date and time using the current locale. Here are some examples (using the en_US locale) to demonstrate the different kinds:
abbreviated | Oct 5, 2019 1:52:56 PM |
full | Saturday, October 5, 2019 1:52:56 PM Central European Summer Time |
long | October 5, 2019 1:52:56 PM GMT+2 |
offset | 2019-10-05 13:52:56 GMT+2 |
short | 10/5/19 1:52 PM |
standard | 2019-10-05 13:52:56 |