Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Date-manipulation/Wren/date-manipulation.wren
Normal file
11
Task/Date-manipulation/Wren/date-manipulation.wren
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import "/date" for Date
|
||||
|
||||
var fmt = "mmmm| |d| |yyyy| |H|:|MM|am| |zz|"
|
||||
var d = Date.parse("March 7 2009 7:30pm EST", fmt)
|
||||
Date.default = fmt
|
||||
System.print("Original date/time : %(d)")
|
||||
d = d.addHours(12)
|
||||
System.print("12 hours later : %(d)")
|
||||
// Adjust to MST say
|
||||
d = d.adjustTime("MST")
|
||||
System.print("Adjusted to MST : %(d)")
|
||||
Loading…
Add table
Add a link
Reference in a new issue