[clug] Calculating the actual date and time

Eyal Lebedinsky eyal at eyal.emu.id.au
Wed Mar 14 12:31:20 GMT 2007


Basil Chupin wrote:
> I am using Mozilla and looking inside the bookmarks.html I can see, for
> example, an entry against one of the URLs I visited as being
> "LAST_ACCESSED: 1168396306", and another one "ADD_DATE: 791585666"
> (which I gather is the date I added it to my bookmarks).
> 
> I am assuming that the numbers somehow relate to the starting date
> decided upon many years ago as the starting point from which dates/time
> will be calculated on computers.
> 
> Does anyone know of the/a formula which will calculate for me the 'real'
> date and time of the above (large) numbers, or at least point me in the
> right direction where I could find such a formula? I did some searching
> on the web but came up with nothing - most likely because I wasn't using
> the right parameters in the searches.
> 
> Thanks in advance.
> 
> Cheers.

On unix:

$ date -d "19700101 + 1168396306 seconds"
Wed Jan 10 03:31:46 EST 2007

$ date -d "19700101 00:00:00 + 791585666 seconds"
Tue Jan 31 21:54:26 EST 1995

The first one looks reasonable, the second may show your age :-)

-- 
Eyal Lebedinsky (eyal at eyal.emu.id.au) <http://samba.org/eyal/>
	attach .zip as .dat


More information about the linux mailing list