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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -