Skip to content

Instantly share code, notes, and snippets.

@yigitserin
Created October 3, 2016 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yigitserin/9baa529feb4199b06dc513f40c87b4e7 to your computer and use it in GitHub Desktop.
Save yigitserin/9baa529feb4199b06dc513f40c87b4e7 to your computer and use it in GitHub Desktop.
NSDate extension for converting current date to C# ticks.
extension NSDate {
var ticks: UInt64 {
return UInt64((self.timeIntervalSince1970 + 62_135_596_800) * 10_000_000)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment