Date manipulation: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 1,902: | Line 1,902: | ||
=={{header|langur}}== |
=={{header|langur}}== |
||
Langur currently uses the Go time package. Testing with Go 1.14.1 on Linux, the time package doesn't seem to parse "EST" correctly, and it seems to fail silently. Given these conditions, I use "-05:00" instead of "EST" in the input string. |
|||
<syntaxhighlight lang="langur"> |
<syntaxhighlight lang="langur"> |
||
val input = "March 7 2009 7:30pm |
val input = "March 7 2009 7:30pm EST" |
||
val iformat = "January 2 2006 3:04pm -07:00" |
val iformat = "January 2 2006 3:04pm -07:00" |
||
val oformat = "January 2 2006 3:04pm MST" |
val oformat = "January 2 2006 3:04pm MST" |