Created
October 3, 2016 11:35
-
-
Save yigitserin/9baa529feb4199b06dc513f40c87b4e7 to your computer and use it in GitHub Desktop.
NSDate extension for converting current date to C# ticks.
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
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