tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Date Formatting
@ 1998-06-11 13:15 Millard Simon
  0 siblings, 0 replies; only message in thread
From: Millard Simon @ 1998-06-11 13:15 UTC (permalink / raw)
  To: tru64-unix-managers


Thanks to Alastair McKinstry for a prompt reply

My orginal question was:

Dear Unix gurus

I am just adding some date output to a script.  When checking the format   
for seconds on the date man page, the code for seconds was described as   
this:

S   Displays the second as a decimal number (00 to 61).

I am be stupid or had dec redefined the number of seconds in a minute?

Alastairs reply was

Extra seconds, called 'leap seconds' are added occasionally to bring the   
atomic clocks around the world into sync with the Earth's rotation; there   
have been about 20 leap seconds since 1970. Hence, '17:59:60' can be a   
valid time.  This may happen in particular if you are using a protocol   
such as xntp to update system clocks automatically from a precise source,   
such as an atomic clock.


So now we know!




Simon Millard

E-mail
Internet: Simon.Millard@barclays.co.uk
Internal: millars1@landsend.ple.barclays.co.uk

Address
CAS - GES/Open Systems Support
Barclays Technology Services
Poole Computer Centre
81, Sopers Lane
Poole, Dorset

Telephone:
External:     +44 (01202) 601155 ext. 2417
Internal:      C/W 7-4160-2417
Fax:            +44 (01202) 642329

Internet communications are not secure and therefore the Barclays Group does
not accept legal responsibility for the contents of this message.
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-11 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-11 13:15 SUMMARY: Date Formatting Millard Simon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox