Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Date-manipulation/Fantom/date-manipulation.fantom
Normal file
7
Task/Date-manipulation/Fantom/date-manipulation.fantom
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fansh> d := DateTime.fromLocale("March 7 2009 7:30pm EST", "MMMM D YYYY h:mmaa zzz")
|
||||
fansh> d
|
||||
2009-03-07T19:30:00-05:00 EST
|
||||
fansh> d + 12hr
|
||||
2009-03-08T07:30:00-05:00 EST
|
||||
fansh> (d+12hr).toTimeZone(TimeZone("London")) // the extra credit!
|
||||
2009-03-08T12:30:00Z London
|
||||
Loading…
Add table
Add a link
Reference in a new issue