Help:Demo of function time

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search


Overview of some of the functionality of #time.

In this table the date is entered in the form ..-..-.. using the values in the first three columns. Input dates like 2008-11-31 show the under- and overflow feature.

The range of acceptable input is 1 January 0111 → 31 December 9999. The years 100 through 110 work too, except that the result for the format codes r and l/D (weekday) are defective. For days in the years 111-1752 the r-output (weekday) shows "Unknown" and the l/D-output "<>". As a consequence, the r-output is correct and accepted as input for years in the range 1753-9999 only.

year month day Y n j D D j M Y from r xrY W gsdnt gsd
-1e300 12 31 0300 12 31 Mon Mon 31 Dec 0300 CCC 01 -3.652425E+302ERROR - Can not handle dates before January 1, 1 A.D. -3.652425E+302
-1e11 12 30 2011 12 30 Fri Fri 30 Dec 2011 MMXI 52 -36524250000000ERROR - Can not handle dates before January 1, 1 A.D. -36524250000001
-4e10 12 30 2010 12 30 Thu Thu 30 Dec 2010 MMX 52 -14609700000000ERROR - Can not handle dates before January 1, 1 A.D. -14609700000001
-400 12 31 Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. -146096ERROR - Can not handle dates before January 1, 1 A.D. -146097
0 2 28 2000 2 28 Mon Mon 28 Feb 2000 MM 09 -306ERROR - Can not handle dates before January 1, 1 A.D. -307
0 2 29 2000 2 29 Tue Tue 29 Feb 2000 MM 09 -305ERROR - Can not handle dates before January 1, 1 A.D. -306
0 3 1 2000 3 1 Wed Wed 1 Mar 2000 MM 09 -304ERROR - Can not handle dates before January 1, 1 A.D. -305
0 12 31 2000 12 31 Sun Sun 31 Dec 2000 MM 52 1ERROR - Can not handle dates before January 1, 1 A.D. 0
1 1 1 2001 1 1 Mon Mon 1 Jan 2001 MMI 01 1 1
100 1 1 0100 1 1 Fri Fri 1 Jan 0100 C 53 36160 36160
100 2 29 0100 3 1 Mon Mon 1 Mar 0100 C 09 36219 36219
110 12 31 0110 12 31 Wed Wed 31 Dec 0110 CX 01 40176 40176
111 1 1 0111 1 1 Thu Thu 1 Jan 0111 CXI 01 40177 40177
123 4 5 0123 4 5 Mon Mon 5 Apr 0123 CXXIII 14 44654 44654
200 12 31 0200 12 31 Wed Wed 31 Dec 0200 CC 01 73048 73048
223 4 5 0223 4 5 Sat Sat 5 Apr 0223 CCXXIII 14 81178 81178
323 4 5 0323 4 5 Thu Thu 5 Apr 0323 CCCXXIII 14 117702 117702
400 12 31 0400 12 31 Sun Sun 31 Dec 0400 CD 52 146097 146097
423 4 5 0423 4 5 Wed Wed 5 Apr 0423 CDXXIII 14 154227 154227
523 4 5 0523 4 5 Mon Mon 5 Apr 0523 DXXIII 14 190751 190751
623 4 5 0623 4 5 Sat Sat 5 Apr 0623 DCXXIII 14 227275 227275
723 4 5 0723 4 5 Thu Thu 5 Apr 0723 DCCXXIII 14 263799 263799
823 4 5 0823 4 5 Wed Wed 5 Apr 0823 DCCCXXIII 14 300324 300324
923 4 5 0923 4 5 Mon Mon 5 Apr 0923 CMXXIII 14 336848 336848
1023 4 5 1023 4 5 Sat Sat 5 Apr 1023 MXXIII 14 373372 373372
1123 4 5 1123 4 5 Thu Thu 5 Apr 1123 MCXXIII 14 409896 409896
1223 4 5 1223 4 5 Wed Wed 5 Apr 1223 MCCXXIII 14 446421 446421
1323 4 5 1323 4 5 Mon Mon 5 Apr 1323 MCCCXXIII 14 482945 482945
1423 4 5 1423 4 5 Sat Sat 5 Apr 1423 MCDXXIII 14 519469 519469
1523 4 5 1523 4 5 Thu Thu 5 Apr 1523 MDXXIII 14 555993 555993
1623 4 5 1623 4 5 Wed Wed 5 Apr 1623 MDCXXIII 14 592518 592518
1723 4 5 1723 4 5 Mon Mon 5 Apr 1723 MDCCXXIII 14 629042 629042
1733 4 5 1733 4 5 Sun Sun 5 Apr 1733 MDCCXXXIII 14 632695 632695
1743 4 5 1743 4 5 Fri Fri 5 Apr 1743 MDCCXLIII 14 636347 636347
1744 4 5 1744 4 5 Sun Sun 5 Apr 1744 MDCCXLIV 14 636713 636713
1745 4 5 1745 4 5 Mon Mon 5 Apr 1745 MDCCXLV 14 637078 637078
1746 4 5 1746 4 5 Tue Tue 5 Apr 1746 MDCCXLVI 14 637443 637443
1747 4 5 1747 4 5 Wed Wed 5 Apr 1747 MDCCXLVII 14 637808 637808
1748 4 5 1748 4 5 Fri Fri 5 Apr 1748 MDCCXLVIII 14 638174 638174
1749 4 5 1749 4 5 Sat Sat 5 Apr 1749 MDCCXLIX 14 638539 638539
1750 4 5 1750 4 5 Sun Sun 5 Apr 1750 MDCCL 14 638904 638904
1751 4 5 1751 4 5 Mon Mon 5 Apr 1751 MDCCLI 14 639269 639269
1752 4 5 1752 4 5 Wed Wed 5 Apr 1752 MDCCLII 14 639635 639635
1752 12 31 1752 12 31 Sun Sun 31 Dec 1752 MDCCLII 52 639905 639905
1753 1 1 1753 1 1 Mon Mon 1 Jan 1753 MDCCLIII 01 639906 639906
1753 4 5 1753 4 5 Thu Thu 5 Apr 1753 MDCCLIII 14 640000 640000
1763 4 5 1763 4 5 Tue Tue 5 Apr 1763 MDCCLXIII 14 643652 643652
1773 4 5 1773 4 5 Mon Mon 5 Apr 1773 MDCCLXXIII 14 647305 647305
1783 4 5 1783 4 5 Sat Sat 5 Apr 1783 MDCCLXXXIII 14 650957 650957
1793 4 5 1793 4 5 Fri Fri 5 Apr 1793 MDCCXCIII 14 654610 654610
1803 4 5 1803 4 5 Tue Tue 5 Apr 1803 MDCCCIII 14 658261 658261
1813 4 5 1813 4 5 Mon Mon 5 Apr 1813 MDCCCXIII 14 661914 661914
1823 4 5 1823 4 5 Sat Sat 5 Apr 1823 MDCCCXXIII 14 665566 665566
1858 11 17 1858 11 17 Wed Wed 17 Nov 1858 MDCCCLVIII 46 678576 678576
1900 02 28 1900 2 28 Wed Wed 28 Feb 1900 MCM 09 693654 693654
1900 02 29 1900 3 1 Thu Thu 1 Mar 1900 MCM 09 693655 693655
1900 03 01 1900 3 1 Thu Thu 1 Mar 1900 MCM 09 693655 693655
1900 02 30 1900 3 2 Fri Fri 2 Mar 1900 MCM 09 693656 693656
1900 03 02 1900 3 2 Fri Fri 2 Mar 1900 MCM 09 693656 693656
1995 09 27 1995 9 27 Wed Wed 27 Sep 1995 MCMXCV 39 728563 728563
2000 1 1 2000 1 1 Sat Sat 1 Jan 2000 MM 52 730120 730120
2000 02 29 2000 2 29 Tue Tue 29 Feb 2000 MM 09 730179 730179
2000 02 30 2000 3 1 Wed Wed 1 Mar 2000 MM 09 730180 730180
2000 03 01 2000 3 1 Wed Wed 1 Mar 2000 MM 09 730180 730180
2000 02 31 2000 3 2 Thu Thu 2 Mar 2000 MM 09 730181 730181
2000 03 02 2000 3 2 Thu Thu 2 Mar 2000 MM 09 730181 730181
2008 0 0 2007 11 30 Fri Fri 30 Nov 2007 MMVII 48 733010 733010
2008 11 31 2008 12 1 Mon Mon 1 Dec 2008 MMVIII 49 733377 733377
2009 2 31 2009 3 3 Tue Tue 3 Mar 2009 MMIX 10 733469 733469
2023 01 29 2023 1 29 Sun Sun 29 Jan 2023 MMXXIII 04 738549 738549
2111 1 1 2111 1 1 Thu Thu 1 Jan 2111 MMCXI 01 770662 770662
2999 1 1 2999 1 1 Tue Tue 1 Jan 2999 MMCMXCIX 01 1094998 1094998
3000 1 1 3000 1 1 Wed Wed 1 Jan 3000 MMM 01 1095363 1095363
3001 1 1 3001 1 1 Thu Thu 1 Jan 3001 MMMI 01 1095728 1095728
9999 12 31 9999 12 31 Fri Fri 31 Dec 9999 MMMMMMMMMCMXCIX 52 3652059 3652059
40000 12 31 2000 12 31 Sun Sun 31 Dec 2000 MM 52 14609700 14609700
4e10 12 31 Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. 14609700000000 14609700000000
1e11 12 30 Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. 36524249999999 36524249999999
1e300 12 30 Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. Error: Invalid time. 3.652425E+302 3.652425E+302

See also[edit]

Links to other help pages

Help contents
Meta · Wikinews · Wikipedia · Wikiquote · Wiktionary · Commons: · Wikidata · MediaWiki · Wikibooks · Wikisource · MediaWiki: Manual · Google
Versions of this help page (for other languages see further)
What links here on Meta or from Meta · Wikipedia · MediaWiki
Reading
Go · Search · Stop words · Namespace · Page name · Section · Backlinks · Redirect · Category · Image page · Special pages · Printable version
Tracking changes
Recent changes (enhanced) | Related changes · Watching pages · Diff · Page history · Edit summary · User contributions · Minor edit · Patrolled edit
Logging in and preferences
Logging in · Preferences · User style
Editing
Starting a new page · Advanced editing · Editing FAQ · Edit toolbar · Export · Import · Shortcuts · Edit conflict · Page size
Referencing
Links · URL · Piped links · Interwiki linking · Footnotes
Style and formatting
Wikitext examples · CSS · Reference card · HTML in wikitext · Formula · List · Table · Sorting · Colors · Images and file uploads
Fixing mistakes
Show preview · Testing · Reverting edits
Advanced functioning
Expansion · Template · Advanced templates · Parser function · Parameter default · Variable · System message · Substitution · Array · Calculation · Transclusion
Others
Special characters · Renaming (moving) a page · Preparing a page for translation · Talk page · Signatures · Sandbox · Legal issues for editors
Languages: