This file contains the date formats that Frink would parse.
Documentation for Simpledateparser or docs/index.html for more details. Now which regular expressions are possible in Frink, I ' d like to replace this//whole mess with a regexp-based solut
Ion, which would is more flexible and/or more powerful. Alan Eliasen///Symbol meaning presentation Example///G ERA designator Text AD//Y Year number 1996//M month into year Text & number July &A mp A/D day in Month number//h hour in AM/PM number 12// (1-12)//H hour in Day number 0//(0-23)//M minute in Hou R number//s second in Min. Number//S millisecond number 978//E day in week Text Tue Sday//D Day in year number 189//F. Week number 2 (2nd Wed in July)// In month//W Week in the Year number//W Week in Month number 2//A
AM/PM marker Text pm//K hour in Day number 24//(1-24) K hour in am/pm number 0//(0-11)//' Escape for text Delimiter//' Single quote Literal '//Most significant digits are, as it should to be. These are the//preferred formats.
This is also matches ISO-8601 date conventions, so if//you ' re trying for international, always use YYYY-MM-DD. ### YYYY-MM-DD HH:mm:ss. SSS ###//Full 24-hour format with milliseconds ### yyyy/mm/dd. SSS ###//Full 24-hour format with milliseconds ### yyyy-mm-dd. SSS a ###//12-hour format with milliseconds ### yyyy/mm/dd. SSS a # ##//12-hour format with milliseconds ### yyyy-mm-dd HH:mm:ss ###//Full 24-hour format ### YYYY/MM/DD ###//Full 24-hour format ### yyyy-mm-dd h:mm:ss a ###/full 12-hour format ### yyyy/mm/dd h:mm:ss A ###//Full 12-hour format ### yyyy-mm-dd hh:mm ###//24-hour format, no seconds ### Yyyy/mm/dd, hh:mm ###//24-hour format, no seconds ### yyyy-mm-dd h:mm a ###//12-hour format, no seconds ### yyyy/mm/d D h:mm a ###//12-hour format, no seconds ### yyyy-mm-dd HH ###//24-hour format, hour only ### YYYY/MM/DD HH ###//24-hour format, hour only ### yyyy-mm-dd h a ###//12-hour format, hour O Nly ### yyyy/mm/dd h a ###//12-hour format, hour only ### YYYY-MM-DD//Date only ### YYYY/MM/DD ###//Date only//all of the same as above with AD or BC preceding: ### G yyyy-mm-dd hh:mm: Ss. SSS ###//Full 24-hour format with milliseconds ### G yyyy/mm/dd HH:mm:ss. SSS ###//Full 24-hour format with milliseconds ### G yyyy-mm-dd h:mm:ss. SSS a ###//12-hour format with milliseconds ### G yyyy/mm/dd h:mm:ss. SSS a ###//12-hour format with milliseconds ### g yyyy-mm-dd HH:mm:ss ###//Full 24-hour format ### G yyyy/ MM/DD HH:mm:ss ###/full 24-hour format ### g yyyy-mm-dd h:mm:ss a ###//full 12-hour format ### g yyyy/ MM/DD H:mm:ss a ###/full 12-hour format ### G yyyy-mm-dd hh:mm ###//24-hour format, no seconds ### G YYYY/MM/DD hh:mm ###//24-hour format, no seconds ### G yyyy-mm-dd h:mm a ###//12-hour format, n o seconds ### G yyyy/mm/dd h:mm a ###//12-hour format, no seconds ### g yyyy-mm-dd HH ###//24 -hour format, hour only ### g yyyy/mm/dd HH ###//24-hour format, hour only ### G yyyy-mm-dd h A ###//12-hour format, hour only ### G yyyy/mm/dd h A ###//12-hour format, hour only ### g yyyy-mm-dd ###//Date only ### g YYYY/MM/DD ###//Date only//dates in the form "August, 1969" ### MMM DD, yyyy ###//date only ### M MM dd, yyyy hh:mm ###//Date and time, 24-hour format ### MMM dd, yyyy HH:mm:ss ###/date and time, 24-hour format ### MMM dd, yyyy HH:mm:ss. SSS ###//Date and time, 24-hour format ### MMM dd, yyyy h:mm a ###//12-hour format, no seconds ### D D, yyyy h:mm:ss a ###//12-hour format with seconds ### MMM dd, yyyy h:mm:ss. SSS a ###//12-hour format, Seconds & MILLISEC//Same as above without a space after the comma. Ugh.
We need regular//expressions for date parsing. ### MMM dd,yyyy ###//Date only ### MMM dd,yyyy hh:mm-###/Date and time, 24-hour format # # # MMM dd,yyyy HH:mm:ss ###//Date and time, 24-hour format ### MMM the dd,yyyy. SSS # ##//Date and Time 24-hour format ### MMM dd,yyyy h:mm a ###//12-hour format, no seconds ### MMM dd,yyyy h:m M:ss a ###//12-hour format with seconds ### MMM dd,yyyy. SSS a ###//12-hour format, Seconds & MILLISEC//dates in the astronomical format 1969 August ten ### yyyy MMM D D ###//date only ### yyyy MMM DD hh:mm ###/Date and time 24-hour format ### yyyy MMM DD HH:mm:ss ###//Date and time, 24-hour format w/sec ### yyyy MMM DD HH:mm:ss. SSS ###//Date and time, 24-hour format w/ms ### yyyy MMM DD h:mm ###//Date and time, 12-hour format # # # yyyy MMM DD h:mm:ss ###//Date and time, 12-hour format ### yyyy dd MMM. SSS ###//Date and time, 12-hour format//reversed format ten August 1969 ### DD MMM yyyy ###//D Ate only ### dd MMM yyyy hh:mm ###//Date and Time 24-hour format ### dd MMM yyyy HH:mm:ss ###/Dat E and time, 24-houR format w/sec ### DD MMM yyyy HH:mm:ss. SSS ###//Date and Time 24-hour format W/ms ### dd MMM yyyy h:mm ###//Date and time, 12-hour format # # # dd MMM yyyy h:mm:ss ###//Date and time, 12-hour format ### dd MMM yyyy.
SSS ###//Date and time, 12-hour format//Are the following useful? ### yyyy-mm ###//year and month ### YYYY/MM ###/year and month ### G yyyy-mm ###//year and month ### G yyyy/mm ###/, and month//This'll of course Conflict if we ever want to define simply a time//in 2400 format.
and damn SimpleDateFormat lets any damn thing match this. ### yyyy ###//year only ### yyyy G ###/year and AD/BC//the following
are time formats with unknown dates. These would parse generally to "today," but that's really sloppy and//unreliable so include the date if you are want to IS
Safe. ### hh:mM:ss. SSS ###//Full time format with milliseconds (24-HR) ### h:mm:ss. SSS a ###//full time format with milliseconds 12-hr ### HH:mm:ss ###//Full time format (24-HR) ### h:mm:ss a ###/Full time format (12-HR) ### hh:mm//### and MI Nute (24-HR) ### h:mm a ###//Hour and Minute (12-HR)//You can also D
Efine the default output format with 4 pound signs. Without any definition, "get the" Java default (which should theoretically//get it from your system ' s settings,) bu t the following gives lots of//information: # G YYYY-MM-DD hh:mm:ss.
SSS A (E) zzzz/Make it we can parse the default output format. ### G yyyy-mm-dd Hh:mm:ss. SSS A (E) zzzz ###