Re: Getting different results from DateTime and Manip for epoch time

2003-06-23 Thread Bruce Van Allen
On Sunday, June 22, 2003 [EMAIL PROTECTED] wrote: I'll try to rephrase this, because it would be good to have it in the FAQ. If somebody can explain it better, or more correctly, please help me! How's this: What time scale does DateTime follow? What's up with UTC, GMT, TAI, and UT1? The

Re: Getting different results from DateTime and Manip for epoch time

2003-06-23 Thread Bruce Van Allen
On Tuesday, June 24, 2003 [EMAIL PROTECTED] wrote: Bruce Van Allen wrote: How's this: ... Before UTC, other time scales were in use, including: Maybe: There are other time scales, such as: because some are still in use (?) Good point. I was trying to convey something about the progression

Re: Getting different results from DateTime and Manip for epoch time

2003-06-22 Thread Peter J. Acklam
Dave Rolsky [EMAIL PROTECTED] wrote: On Fri, 20 Jun 2003, Eugene van der Pijll wrote: Peter J. Acklam schreef: I could have sworn the difference was 0 seconds between 1970-01-01 and until the leap second in June 1972. I should have checked

Re: Getting different results from DateTime and Manip for epoch time

2003-06-22 Thread Eugene van der Pijll
Peter J. Acklam schreef: It is the IERS (http://www.iers.org) who decides when leap seconds are inserted. According to their page http://www.iers.org/iers/earth/rotation/utc/table1.html the first leap second after 1970 was the second before 1972-07-01 00:00:00 UTC. There cannot have

Re: Getting different results from DateTime and Manip for epoch time

2003-06-22 Thread fglock
http://hpiers.obspm.fr/eop-pc/earthor/utc/leapsecond. html ... Since the system was introduced in 1972, The table starts in 1972. Before that, GMT was in use - not UT1! - Flavio S. Glock

Re: Getting different results from DateTime and Manip for epoch time

2003-06-22 Thread Peter J. Acklam
Eugene van der Pijll [EMAIL PROTECTED] wrote: Peter J. Acklam schreef: It is the IERS (http://www.iers.org) who decides when leap seconds are inserted. According to their page http://www.iers.org/iers/earth/rotation/utc/table1.html the first leap second after 1970 was the

Re: Getting different results from DateTime and Manip for epoch time

2003-06-22 Thread Peter J. Acklam
John Peacock [EMAIL PROTECTED] wrote: Peter J. Acklam wrote: I don't see what the epoch has got to do with it. The TAI time system is exactly like UTC except for the leap seconds, and that, to me, seems very similar to what Perl is using. The epoch has everything to do with it. TAI is

Re: Getting different results from DateTime and Manip for epoch time

2003-06-22 Thread Ben Bennett
Fantastic! Thank you for the summary, I will add it to the FAQ (with appropriate attribution of course). -ben On Sun, Jun 22, 2003 at 10:36:02PM +, [EMAIL PROTECTED] wrote: Thanks Eugene. I'll try to rephrase this, because it would be good to have it in the

Re: Getting different results from DateTime and Manip for epoch time

2003-06-19 Thread John Peacock
Peter J. Acklam wrote: Iain Truskett [EMAIL PROTECTED] wrote: Unix epochs are always GMT/UTC based (one of the two). Perl's gmtime() and localtime() aren't UTC compatible. I'd say they are using TAI time. GMT belongs to the past. Except you'd be wrong. ;~) GMT == UTC for all intents and

Re: Getting different results from DateTime and Manip for epoch time

2003-06-19 Thread Peter J. Acklam
John Peacock [EMAIL PROTECTED] wrote: Peter J. Acklam wrote: Perl's gmtime() and localtime() aren't UTC compatible. I'd say they are using TAI time. GMT belongs to the past. Except you'd be wrong. ;~) Conveniently for me, the pages you quote back me up, not you. GMT == UTC for all

Re: Getting different results from DateTime and Manip for epoch time

2003-06-19 Thread John Peacock
Peter J. Acklam wrote: Conveniently for me, the pages you quote back me up, not you. I should have been more explicit in what I was asserting, then. The colloquial term GMT has been supplanted by the functionally equivalent, and much more accurately defined, UTC as the source of international

Re: Getting different results from DateTime and Manip for epoch time

2003-06-19 Thread Eugene van der Pijll
Peter J. Acklam schreef: And you say that Perl is usually using UTC. Then please show me some examples of Perl giving the following, which would be correct for an UTC clock. Actually, just one example would be nice. $ perl -wle 'print scalar gmtime $_ for 78796799 .. 78796801' Fri

Re: Getting different results from DateTime and Manip for epoch time

2003-06-19 Thread Peter J. Acklam
John Peacock [EMAIL PROTECTED] wrote: Peter J. Acklam wrote: I didn't mean that Perl is using a TAI library, but the TAI time system or TAI calendar. Perl is _not_ using TAI, since it is employing an epoch corresponding to the Unix epoch (except on Mac's???). I don't see what the epoch

Re: Getting different results from DateTime and Manip for epoch time

2003-06-19 Thread Peter J. Acklam
Eugene van der Pijll [EMAIL PROTECTED] wrote: If Perl (or the underlying library functions) used TAI, it should have printed something like $ perl -wle 'print scalar localtime $_ for 78796799 .. 78796801' Sat Jul 1 01:00:09 1972 Sat Jul 1 01:00:10 1972 Sat Jul 1 01:00:11

Re: Getting different results from DateTime and Manip for epoch time

2003-06-19 Thread Eugene van der Pijll
John Peacock schreef: Peter J. Acklam wrote: I don't see what the epoch has got to do with it. The TAI time system is exactly like UTC except for the leap seconds, and that, to me, seems very similar to what Perl is using. The epoch has everything to do with it. TAI is not defined to