uSeR:verdy_p/sandbox
Jump to navigation
Jump to search
Sandboxes for specific tests:
This personal sandbox page is used only to test various issues when formating dates in translatable pages. It is not meant to be published or referenced by any other page, but if you think you have cases to test for specific languages, free free to report them in the talk page.
Its content may change without notice depending on tests to perform when working for example on the translation of templates including dates, numbers, or other elements requiring localedependant data or layouts.
 To Translation admins: don't place this translatable page in any core translation group.
 To Translators and any other editors on Meta: don't care if your language is not listed or if the translations are not complete, unless you want to check by yourself that some cases for your language are correctly handled and want to demonstrate it (don't forget to talk about it in the talk page if the displayed result is not what you would expect for your language. I'll try to investigate the issue and add/remove some tests.
Example:
calendar or clock  date element  format variant  UTC timezone (#time:)  local timezone on server (#timel:)  

ASCIIonly numbers  localized numbers  ASCIIonly numbers  localized numbers  
ISO weekly calendar  year  4 digits  {{#time:xno}} = 2022

{{#time:o}} = 2022,{{CURRENTISOYEAR}} = 2022

{{#timel:xno}} = 2022

{{#timel:o}} = 2022

week of year  2 digits (01 to 52 or 53)  {{#time:xnW}} = 33

{{#time:W}} = 33,{{CURRENTISOWEEK}} = 33

{{#timel:xnW}} = 33

{{#timel:W}} = 33
 
day of week (Monday to Sunday)  1 digit (1 to 7)  {{#time:xnN}} = 1

{{#time:N}} = 1

{{#timel:xnN}} = 1

{{#timel:N}} = 1
 
astronomic Gregorian calendar  timestamp  14 digits  {{#time:xnYxnmxndxnHxnixns}} = 20220815141029,{{CURRENTTIMESTAMP}} = 20220815141029

{{#time:YmdHis}} = 20220815141029

{{#timel:xnYxnmxndxnHxnixns}} = 20220815141029,{{LOCALTIMESTAMP}} = 20220815141029

{{#timel:YmdHis}} = 20220815141029

year  4 digits  {{#time:xnY}} = 2022

{{#time:Y}} = 2022,{{CURRENTYEAR}} = 2022

{{#timel:xnY}} = 2022

{{#timel:Y}} = 2022,{{LOCALYEAR}} = 2022
 
2 digits  {{#time:xny}} = 22

{{#time:y}} = 22

{{#timel:xny}} = 22

{{#timel:y}} = 22
 
month  2 digits  {{#time:xnm}} = 08

{{#time:m}} = 08,{{CURRENTMONTH}} = 08

{{#timel:xnm}} = 08

{{#timel:m}} = 08,{{LOCALMONTH}} = 08
 
1 or 2 digits  {{#time:xnn}} = 8

{{#time:n}} = 8

{{#timel:xnn}} = 8

{{#timel:n}} = 8
 
day of month  2 digits  {{#time:xnd}} = 15

{{#time:d}} = 15,{{CURRENTDAY2}} = 15

{{#timel:xnd}} = 15

{{#timel:d}} = 15,{{LOCALDAY2}} = 15
 
1 or 2 digits  {{#time:xnj}} = 15

{{#time:j}} = 15,{{CURRENTDAY}} = 15

{{#timel:xnj}} = 15

{{#timel:j}} = 15,{{LOCALDAY}} = 15
 
24hour clock  Hour  2 digits  {{#time:xnH}} = 14

{{#time:H}} = 14,{{CURRENTHOUR}} = 14

{{#timel:xnH}} = 14

{{#timel:H}} = 14,{{LOCALHOUR}} = 14

1 or 2 digits  {{#time:xnG}} = 14

{{#time:G}} = 14

{{#timel:xnG}} = 14

{{#timel:G}} = 14,{{LOCALHOUR}} = 14
 
12hour clock  Hour  2 digits  {{#time:xnh}} = 02

{{#time:h}} = 02

{{#timel:xnh}} = 02

{{#timel:h}} = 02

1 or 2 digits  {{#time:xng}} = 2

{{#time:g}} = 2

{{#timel:xng}} = 2

{{#timel:g}} = 2
