I created DB from google chrome's Cookies file and one of the columns in the cookies
table is expires_utc
. The format of the column is like - 13169399213145330, which is more like unix time. But when i'm trying to use unix time converter, it gives wrong values.
So, what format is that and how i can convert it to actually unix time?
Instant .parse("1601-01-01T00:00:00Z") .plus(13169399213145330L, ChronoUnit.MICROS) .getEpochSecond()
. Obviously extract the 1601-01-01 time into a constant, say,CHROME_COOKIE_EPOCH
. – Keats