[clug] Calculating the actual date and time

Sam Couter sam at couter.id.au
Wed Mar 14 20:25:37 GMT 2007

Basil Chupin <blchupin at tpg.com.au> wrote:
> 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.

Others have shown you the date command, but didn't answer the question
implicit here.

The unix epoch is midnight, 1st January 1970. Unix time is counted in
seconds since that moment. In another 30 years we'll run out of seconds
able to be stored in a 32-bit time_t type.
Sam Couter         |  mailto:sam at couter.id.au
                   |  jabber:sam at teknohaus.dyndns.org
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20070315/5098a393/attachment.bin

More information about the linux mailing list