Content:HistoryPP/DateFormatting-Format: Difference between revisions
Jump to navigation
Jump to search
(missing </table>) |
(missing <tr> for headers) |
||
Line 2: | Line 2: | ||
Content:HistoryPP/DateFormatting-Format/Definitions | Content:HistoryPP/DateFormatting-Format/Definitions | ||
}}<table class="wikitable"> | }}<table class="wikitable"> | ||
<th scope="col"> {{L10n:Content/TableHeaders | Value}} </th> | <tr> | ||
<th scope="col"> {{L10n:Content/TableHeaders | Description}} </th> | <th scope="col"> {{L10n:Content/TableHeaders | Value}} </th> | ||
<th scope="col"> {{L10n:Content/TableHeaders | Example}} </th> | <th scope="col"> {{L10n:Content/TableHeaders | Description}} </th> | ||
<th scope="col"> {{L10n:Content/TableHeaders | Example}} </th> | |||
</tr> | |||
{{ #loop: i | {{ #loop: i | ||
| 0 <!-- loops start value for {{#var:i}} --> | | 0 <!-- loops start value for {{#var:i}} --> |
Latest revision as of 18:49, 13 December 2015
Value | Description | Example |
---|---|---|
y | Year last 2 digits | 06 |
yy | Year last 2 digits | 06 |
yyyy | Year as 4 digits | 2006 |
m | Month number without leading zero | 1 |
mm | Month number with leading zero | 01 |
mmm | Short month name | Jan |
mmmm | Full month name | January |
d | Day number without leading zero | 2 |
dd | Day number with leading zero | 02 |
ddd | Short day name | Mon |
dddd | Full day name | Monday |
ddddd | Date as short date format (system-dependent) | 02/01/2006 |
dddddd | Date as long date format (system-dependent) | 02 January 2006 |
h | Hour without leading zero | 3 |
hh | Hour with leading zero | 03 |
n | Minute without leading zero | 5 |
nn | Minute with leading zero | 05 |
s | Second without leading zero | 44 |
ss | Second with leading zero | 44 |
z | Millisecond without leading zero | 21 |
zzz | Millisecond as 3 digits | 021 |
am/pm | Time in 12-hour format with "am" or "pm" | am |
a/p | Time in 12-hour format with "a" or "p" | a |
t | Short time format (system-dependent) | 3:05 |
tt | Long time format (system-dependent) | 3:05:44 |
c | Short date format + long time format (system-dependent) | 02/01/2006 3:05:44 |