Difference between revisions of "Translations:Templates/8/en"
From meteoplug
(Importing a new version from external source) |
(Importing a new version from external source) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
* '''YYYY''': year as four digit number | * '''YYYY''': year as four digit number | ||
* '''YY''': year as two digit number | * '''YY''': year as two digit number | ||
− | * '''MM''': month as two digit number, if only one digit | + | * '''MMM''': month as three character English abbreviation ("Jan", Feb", ...) |
+ | * '''MM''': month as two digit number, if only one digit needed a zero will be used as first digit | ||
* '''M''': month as one or two digit number, no leading zeros | * '''M''': month as one or two digit number, no leading zeros | ||
− | * '''DD''': day of month as two digit number, if only one digit | + | * '''DD''': day of month as two digit number, if only one digit needed a zero will be used as first digit |
* '''D''': day of month as one or two digit number, no leading zeros | * '''D''': day of month as one or two digit number, no leading zeros | ||
− | * '''hh''': hour in 24h notation as two digit number, if only one digit | + | * '''hh''': hour in 24h notation as two digit number, if only one digit needed a zero will be used as first digit |
* '''h''': hour in 24h notation as one or two digit number, no leading zeros | * '''h''': hour in 24h notation as one or two digit number, no leading zeros | ||
− | * '''HH''': hour in 12h notation as two digit number, if only one digit | + | * '''HH''': hour in 12h notation as two digit number, if only one digit needed a zero will be used as first digit |
* '''H''': hour in 12h notation as one or two digit number, no leading zeros | * '''H''': hour in 12h notation as one or two digit number, no leading zeros | ||
* '''apm''': returns "am" or "pm" to be added to 12h time notations | * '''apm''': returns "am" or "pm" to be added to 12h time notations | ||
* '''APM''': returns "AM" or "PM" to be added to 12h time notations | * '''APM''': returns "AM" or "PM" to be added to 12h time notations | ||
− | * '''mm''': minute as two digit number, if only one digit | + | * '''mm''': minute as two digit number, if only one digit needed a zero will be used as first digit |
* '''m''': minute as one or two digit number, no leading zeros | * '''m''': minute as one or two digit number, no leading zeros | ||
− | * '''ss''': seconds as two digit number, if only one digit | + | * '''ss''': seconds as two digit number, if only one digit needed a zero will be used as first digit |
* '''s''': seconds as one or two digit number, no leading zeros | * '''s''': seconds as one or two digit number, no leading zeros | ||
When a capital "U" preceeds a date/time variable name, UTC is used instead of local time ("[Uhh]:[Umm]:[Uss] UTC" is evaluated to a string like "16:03:33 UTC") | When a capital "U" preceeds a date/time variable name, UTC is used instead of local time ("[Uhh]:[Umm]:[Uss] UTC" is evaluated to a string like "16:03:33 UTC") | ||
+ | * '''epoch''': epochtime as defined in Unix (seconds since January 1, 1970) |
Latest revision as of 15:08, 3 January 2018
Date und time variables are defined as follows:
- YYYY: year as four digit number
- YY: year as two digit number
- MMM: month as three character English abbreviation ("Jan", Feb", ...)
- MM: month as two digit number, if only one digit needed a zero will be used as first digit
- M: month as one or two digit number, no leading zeros
- DD: day of month as two digit number, if only one digit needed a zero will be used as first digit
- D: day of month as one or two digit number, no leading zeros
- hh: hour in 24h notation as two digit number, if only one digit needed a zero will be used as first digit
- h: hour in 24h notation as one or two digit number, no leading zeros
- HH: hour in 12h notation as two digit number, if only one digit needed a zero will be used as first digit
- H: hour in 12h notation as one or two digit number, no leading zeros
- apm: returns "am" or "pm" to be added to 12h time notations
- APM: returns "AM" or "PM" to be added to 12h time notations
- mm: minute as two digit number, if only one digit needed a zero will be used as first digit
- m: minute as one or two digit number, no leading zeros
- ss: seconds as two digit number, if only one digit needed a zero will be used as first digit
- s: seconds as one or two digit number, no leading zeros
When a capital "U" preceeds a date/time variable name, UTC is used instead of local time ("[Uhh]:[Umm]:[Uss] UTC" is evaluated to a string like "16:03:33 UTC")
- epoch: epochtime as defined in Unix (seconds since January 1, 1970)