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
Post a Comment