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 -

java - Openshift port-forwarding -

php - Symfony 2: "No route found for "GET /" - error on fresh installation -