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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -