Why Go use 2006-01-02T15:04:05Z07:00 as standard time?
940 views
Skip to first unread message
Googol Lee
unread,
Mar 30, 2012, 11:45:40 PM3/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Hi,
I find go package time use 2006-01-02T15:04:05Z07:00 as standard time. Beside all fields number are different(from 1-7), what happend at that time? Does it have a special meaning to go or anyone? Or just number 1-7?
David Symonds
unread,
Mar 31, 2012, 12:03:00 AM3/31/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Googol Lee, golan...@googlegroups.com
On Sat, Mar 31, 2012 at 2:45 PM, Googol Lee <goog...@gmail.com> wrote:
> Or just number 1-7?
That's it.
Jan 2, 3:04:05 PM, 2006 UTC+7.
Googol Lee
unread,
Mar 31, 2012, 12:08:37 AM3/31/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com, Googol Lee
What's the name of layout like "Jan 2, 3:04:05 PM, 2006 UTC+7"?
Seems no predefined layout same as that.
Kyle Lemons
unread,
Mar 31, 2012, 4:58:07 PM3/31/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Googol Lee, golan...@googlegroups.com
On Fri, Mar 30, 2012 at 9:08 PM, Googol Lee <goog...@gmail.com> wrote:
What's the name of layout like "Jan 2, 3:04:05 PM, 2006 UTC+7"?
Seems no predefined layout same as that.
I'm pretty sure it was constructed such that arbitrary layouts would be uambiguous but that the order at least made some sort of sense. For instance, you couldn't do any AM time, because then you couldn't tell if the format wanted 12- or 24-hour time.