Date manipulation: Difference between revisions
→{{header|langur}}
(improved variable names, added comments, added second example) |
Langurmonkey (talk | contribs) |
||
Line 1,904:
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
val
val oformat = "January 2 2006 3:04pm MST"
val
val
val
val
val
val
val
writeln "input string: ",
writeln "input format string: ",
writeln "output format string: ",
writeln()
writeln
writeln
writeln
writeln
writeln
writeln
writeln
</syntaxhighlight>
{{out}}
|