Date manipulation: Difference between revisions

Content deleted Content added
Langurmonkey (talk | contribs)
Langurmonkey (talk | contribs)
Line 1,902:
 
=={{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">
val input = "March 7 2009 7:30pm -05:00EST"
val iformat = "January 2 2006 3:04pm -07:00"
val oformat = "January 2 2006 3:04pm MST"