From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078712011600.tru64-unix-managers.marc@archive.invalid> From: Millard Simon Date: Thu, 11 Jun 1998 13:15:00 +0000 To: tru64-unix-managers Subject: SUMMARY: Date Formatting X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078712011600 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.