I am using TelephonyManger.getAllCellInfo to gather information about nearby cells. I noticed that CellInfo contains a field named mTimestamp
, which according to documentation is:
Approximate time of this cell information in nanos since boot
Now, I want to convert this time to an actual timestamp, which will give me the specific date on which the sample was taken.
Is doing it as such: return System.currentTimeMillis() - timestampFromBootInNano / 1000000L;
the correct way to convert it?