Jump to content

User:Artbarte/sandbox/Dates

From Wikipedia, the free encyclopedia

Date parser testing

[edit]

Input: 31 august 2013 Format:
Output: 31 august 2013
Input: 31 august 2013 Format: mdy
Output: August 31, 2013
Input: August 27, 2013 Format: iso
Output: 2013-08-27
Input: 31 August 2013 Format: year
Output: circa 2013
Input: 31 August 2013 Format: iso
Output: 2013-08-31
Input: 29 February 2004 Format: mdy
Output: circa February 29, 2004
Input: 29 February 2005 Format: mdy
Output: circa March 01, 2005
Input: 27/08/2013 Format:
Output: 27/08/2013
Input: 2013-08-27 Format: mdy
Output: August 27, 2013
Input: 20/04/2013 Format: mdy
Output: April 20, 2013

Input: 31 August 103 AD Format:
Output: 31 August 103 AD
Input: 31 August 2013 BC Format:
Output: 31 August 2013 BC
Input: 31 August 2013 BCE Format:
Output: 31 August 2013 BCE
Input: 31 August 103 CE Format:
Output: 31 August 103 CE
Input: 2013-08-31 Format:
Output: 2013-08-31
Input: 31 August 213 Format:
Output: 31 August 213
Input: 31 August 13 Format:
Output: 31 August 13
Input: 31 August 13 BC Format:
Output: 31 August 13 BC
Input: 3 may 2017 Format:
Output: 3 may 2017
Input: 3 Jan 2017 Format:
Output: 3 Jan 2017
Input: 3 jan 9 AD Format:
Output: 3 jan 9 AD
Input: 31 February 2013 Format: mdy
Output: March 03, 2013

Invalid input
Invalid input
Invalid input
Invalid input
Invalid input
Invalid input
Lua error in Module:Sandbox/Artbarte/Dates at line 78: attempt to compare number with nil. Lua error in Module:Sandbox/Artbarte/Dates at line 78: attempt to compare number with nil. Invalid input
Invalid input
Lua error in Module:Sandbox/Artbarte/Dates at line 78: attempt to compare number with nil.