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
9
Task/Date-manipulation/Sidef/date-manipulation.sidef
Normal file
9
Task/Date-manipulation/Sidef/date-manipulation.sidef
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var dt = frequire('DateTime::Format::Strptime')
|
||||
|
||||
var input = 'March 7 2009 7:30pm EST'
|
||||
input.sub!('EST', 'America/New_York')
|
||||
|
||||
say dt.strptime('%b %d %Y %I:%M%p %O', input) \
|
||||
.add(hours => 12) \
|
||||
.set_time_zone('America/Edmonton') \
|
||||
.format_cldr('MMMM d yyyy h:mma zzz')
|
||||
Loading…
Add table
Add a link
Reference in a new issue