I'm creating a geofence in Android as shown in the Android documentation. The expiration duration in the example is 10 minutes, i.e. 600000 milliseconds.
geofenceList.add(new Geofence.Builder()
.setRequestId("Victoria Station")
.setCircularRegion(51.4954, -0.1443054, 500)
.setExpirationDuration(600000)
.setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER)
.build());
public Geofence.Builder setExpirationDuration (long durationMillis)
Sets the expiration duration of geofence. This geofence will be removed automatically after this period of time.
Later I'm checking the entered values of the geofence like this
Geofence geofence = geofenceList.get(0);
Log.d(LOG_TAG, "expirationTime: " + geofence.getExpirationTime());
which results in an expirationTime of 525501519
public abstract long getExpirationTime ()
Returns the expiration elapsed realtime of geofence in milliseconds, or NEVER_EXPIRE if there's no expiration. When positive, this geofence will be removed automatically after that time.
How can I convert this expirationTime 525501519
into readable format?
Note: It is NOT a unix timestamp, which would be something like 1669823453000
...