Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Date-manipulation/F-Sharp/date-manipulation.fs
Normal file
14
Task/Date-manipulation/F-Sharp/date-manipulation.fs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
open System
|
||||
|
||||
let main() =
|
||||
let est = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time")
|
||||
let date = DateTime.Parse("March 7 2009 7:30pm -5" )
|
||||
let date_est = TimeZoneInfo.ConvertTime( date, est)
|
||||
let date2 = date.AddHours(12.0)
|
||||
let date2_est = TimeZoneInfo.ConvertTime( date2, est)
|
||||
Console.WriteLine( "Original date in local time : {0}", date )
|
||||
Console.WriteLine( "Original date in EST : {0}", date_est )
|
||||
Console.WriteLine( "12 hours later in local time: {0}", date2 )
|
||||
Console.WriteLine( "12 hours later in EST : {0}", date2_est )
|
||||
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue