This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

When I look at cookies.sqlite, how do I read the numbers under last accessed, expiry, and creation time?

  • 1 svar
  • 1 har dette problemet
  • 7 views
  • Siste svar av cor-el

more options

Under the column "expiry" it reads: 1691890990 Under the column "lastAccessed" it reads: 1484536794500550 Under the column "creationTime" it reads: 1376530990050796

Under the column "expiry" it reads: 1691890990 Under the column "lastAccessed" it reads: 1484536794500550 Under the column "creationTime" it reads: 1376530990050796

Valgt løsning

The 16 character strings are date-time stamps in microseconds in Unix epoch format.

The shorter expiry values are likely a count in milliseconds (days: xxx/(24*60*60*1000)).

Possible JavaScript bookmarklet to convert the 16 character strings:

javascript:(function(){var D='',d=new Date(),n; do{n=parseInt(D);d.setTime(isNaN(n)?d.getTime():n/1000);D=prompt('EPOCH (microseconds)\nClick Cancel to Stop\n\n'+D+'\n'+d.toLocaleString()+'\n'+(d.getTime()*1000),d.toUTCString());}while(D!=null);})();
Les dette svaret i sammenhengen 👍 3

All Replies (1)

more options

Valgt løsning

The 16 character strings are date-time stamps in microseconds in Unix epoch format.

The shorter expiry values are likely a count in milliseconds (days: xxx/(24*60*60*1000)).

Possible JavaScript bookmarklet to convert the 16 character strings:

javascript:(function(){var D='',d=new Date(),n; do{n=parseInt(D);d.setTime(isNaN(n)?d.getTime():n/1000);D=prompt('EPOCH (microseconds)\nClick Cancel to Stop\n\n'+D+'\n'+d.toLocaleString()+'\n'+(d.getTime()*1000),d.toUTCString());}while(D!=null);})();

Endret av cor-el