[clug] Calculating the actual date and time

Steve Jenkin sjenkin at canb.auug.org.au
Wed Mar 14 12:27:14 GMT 2007


On Wed, Mar 14, 2007 at 10:59:49PM +1100, Basil Chupin wrote:

part of the puzzle: the GNU date time understands the Unix 'epoch' time.
see man date; and info date

e.g.
   $ date --date=@1168396306
   Wed Jan 10 13:31:46 EST 2007
   $ date --date=@791585666
   Wed Feb  1 07:54:26 EST 1995
   $ echo $(( 1168396306 + 791585666 ))
   1959981972
   $ date --date=@1959981972
   Tue Feb 10 10:26:12 EST 2032

I don't know what the second number really is... Could be in 100's of a
second.

HTH
sj


> 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.
> 
> -- 
> Never believe anything until it's been officially denied.
> 
> 
> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

-- 
Steve Jenkin, Info Tech, Systems and Design Specialist.
0412 786 915 (+61 412 786 915)
PO Box 48, Kippax ACT 2615, AUSTRALIA

sjenkin at canb.auug.org.au http://www.canb.auug.org.au/~sjenkin


More information about the linux mailing list