Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What does the `et` timestamp stand for in the Android Location object?

I got the following location object from LocationResult, and I was wondering what the et timestamp is?

Location[fused 37.421998,-122.084000, hAcc=12.236 et=+3d16h46m21s252ms alt=154.0 vAcc=1.6407026 vel=1.2971644 sAcc=1.5 bear=15.871763 bAcc=45.0]

I couldn’t find any useful information in the docs either.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

If you look at the source code to Location, you will see that toString() includes:

        s.append(" et=");
        TimeUtils.formatDuration(getElapsedRealtimeMillis(), s);

So, et is the value of getElapsedRealtimeMillis(). According to the documentation, that is "the time of this fix in milliseconds of elapsed realtime since system boot".

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading