Talk:Date format: Difference between revisions

From Rosetta Code
Content added Content deleted
(Leading zeros ... I think)
(Current time?)
Line 1: Line 1:
==Input==
I'm not exactly sure what is supposed to go on here. How is the date given? How would you like it formatted? I can give you POSIX time pretty easily in most languages...but I don't think you want that. --[[User:mwn3d|mwn3d]] 23:54, 10 November, 2007 (EST)
I'm not exactly sure what is supposed to go on here. How is the date given? How would you like it formatted? I can give you POSIX time pretty easily in most languages...but I don't think you want that. --[[User:mwn3d|mwn3d]] 23:54, 10 November, 2007 (EST)
: The Forth and Perl examples, as written, print the current date and time. Seems like a good choice. --[[User:Short Circuit|Short Circuit]] 15:02, 10 February 2008 (MST)


==Leading zeros==
While I'm sure that there should be no leading zeros in the format where words occur, I suspect that the intention is for Febrary 1st, 2008 to be formatted "2008-02-01" not "2008-2-1". Does the specification need to be altered to reflect this? --[[User:TBH|TBH]] 22:17, 8 February 2008 (MST)
While I'm sure that there should be no leading zeros in the format where words occur, I suspect that the intention is for Febrary 1st, 2008 to be formatted "2008-02-01" not "2008-2-1". Does the specification need to be altered to reflect this? --[[User:TBH|TBH]] 22:17, 8 February 2008 (MST)

Revision as of 22:02, 10 February 2008

Input

I'm not exactly sure what is supposed to go on here. How is the date given? How would you like it formatted? I can give you POSIX time pretty easily in most languages...but I don't think you want that. --mwn3d 23:54, 10 November, 2007 (EST)

The Forth and Perl examples, as written, print the current date and time. Seems like a good choice. --Short Circuit 15:02, 10 February 2008 (MST)

Leading zeros

While I'm sure that there should be no leading zeros in the format where words occur, I suspect that the intention is for Febrary 1st, 2008 to be formatted "2008-02-01" not "2008-2-1". Does the specification need to be altered to reflect this? --TBH 22:17, 8 February 2008 (MST)