Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
10
Task/Date-manipulation/Phix/date-manipulation.phix
Normal file
10
Task/Date-manipulation/Phix/date-manipulation.phix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
include builtins\timedate.e
|
||||
set_timedate_formats({"Mmmm d yyyy h:mmpm tz"})
|
||||
timedate td = parse_date_string("March 7 2009 7:30pm EST")
|
||||
atom twelvehours = timedelta(hours:=12)
|
||||
td = adjust_timedate(td,twelvehours)
|
||||
?format_timedate(td)
|
||||
td = change_timezone(td,"ACDT") -- extra credit
|
||||
?format_timedate(td)
|
||||
td = adjust_timedate(td,timedelta(days:=31*4))
|
||||
?format_timedate(td)
|
||||
Loading…
Add table
Add a link
Reference in a new issue