In iOS, Why [[NSDate date]timeIntervalSince1970] is double internally? It should be long long though -


in ios sdk, observed [[nsdate date]timeintervalsince1970] returns nstimeinterval double internally. ideally shouldn't long long?

from apple documentation:

nstimeinterval specified in seconds; yields sub-millisecond precision on range of 10,000 years. 

nstimeinterval represents time dimension value not decimal number. nstimeinterval must fractional too.

in 64-bit systems cgfloat , long long has same size – 8 bytes.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -