Created
March 4, 2012 10:43
-
-
Save Thorium/1972349 to your computer and use it in GitHub Desktop.
Timestamp with timezone (YYYYMMDDhhmmssffff+zzzz)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myTimeStamp = | |
let zone = System.TimeZone.CurrentTimeZone.GetUtcOffset System.DateTime.Now | |
let prefix = match (zone<System.TimeSpan.Zero) with | true -> "-" | _ -> "+" | |
System.DateTime.UtcNow.ToString("yyyyMMddHHmmssffff") + prefix + zone.ToString("hhss"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment