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
8
Task/Date-manipulation/FunL/date-manipulation.funl
Normal file
8
Task/Date-manipulation/FunL/date-manipulation.funl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import time.{TimeZone, Date, SimpleDateFormat, Hour}
|
||||
|
||||
pattern = SimpleDateFormat( 'MMMM d yyyy h:mma zzz' )
|
||||
date = pattern.parse( 'March 7 2009 7:30pm EST' )
|
||||
later = Date( date.getTime() + 12 Hour )
|
||||
println( pattern.format(later) ) // Eastern Daylight Time
|
||||
pattern.setTimeZone( TimeZone.getTimeZone('America/Los_Angeles') )
|
||||
println( pattern.format(later) ) // U.S. Pacific Time
|
||||
Loading…
Add table
Add a link
Reference in a new issue