Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.