I need to store dates in a form of number of seconds since 1970.
With this I am getting number of seconds since 1970 with Swift by using Foundation's NSDate:
NSDate().timeIntervalSince1970
And maybe a dumb question but why this is double
shouldn't it be int
?
What is equivalent of this method in C#?
I am not sure what to use to get the same value.