Re: Epoch...

2004-03-03 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > However, note that the base date is different on Windows ... ... and depending on the compiler version and vendor. This is a snippet from an app, which of course was written when I was younger, but this was the code that accumulated to get a "base date" j

Re: Epoch...

2004-03-03 Thread Doug McNutt
At 18:46 +0100 3/3/04, Jos Visser wrote: >Nahhh.... Epoch should be 1-1-1970 at 12:00am midnight, *but* we will >have to allow for negative time values so that we can span either side >of eternity... That's not so strange. On of the, very few, things Microsoft has done right is to

Re: Epoch...

2004-03-03 Thread Dan Sugalski
t getting into the "What should our base time for the >> epoch be" arguments, I'll warn you that the answer if I have to make >> one is probably Nov 17, 1858 at midnight, give or take a bad memory, >> and our time value'll be a 64-bit integer. So think ca

Re: Epoch...

2004-03-03 Thread Jos Visser
quot;What should our base time for the > >> epoch be" arguments, I'll warn you that the answer if I have to make > >> one is probably Nov 17, 1858 at midnight, give or take a bad memory, > >> and our time value'll be a 64-bit integer. So think carefully b

Re: Epoch...

2004-03-03 Thread Dan Sugalski
At 6:46 PM +0100 3/3/04, Jos Visser wrote: On Wed, Mar 03, 2004 at 11:37:09AM -0500 it came to pass that Dan Sugalski wrote: FWIW, if we start getting into the "What should our base time for the epoch be" arguments, I'll warn you that the answer if I have to make one is probab

Epoch...

2004-03-03 Thread Jos Visser
On Wed, Mar 03, 2004 at 11:37:09AM -0500 it came to pass that Dan Sugalski wrote: > > FWIW, if we start getting into the "What should our base time for the > epoch be" arguments, I'll warn you that the answer if I have to make > one is probably Nov 17, 1858 at m

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-16 Thread GregLondon
J. David Blackstone wrote: > I always treat the return value of time() as a black-box value. I >can perform specific actions on it, such as feeding it to localtime() >or adding relative time intervals to it, such as a year of seconds. >But I do not allow myself to look at that value. I was ki

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-16 Thread Jeremy Howard
> On Tue, Aug 15, 2000 at 09:25:34AM -0700, Larry Wall wrote: > > [EMAIL PROTECTED] writes: > > : Yep. Or more generally "Standardize Perl on all platforms to one > > : common time epoch" and reccommend the Unix epoch since it's so > > : widespread.

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-16 Thread Tim Bunce
On Tue, Aug 15, 2000 at 09:25:34AM -0700, Larry Wall wrote: > [EMAIL PROTECTED] writes: > : Yep. Or more generally "Standardize Perl on all platforms to one > : common time epoch" and reccommend the Unix epoch since it's so > : widespread. :-) > > Oh, gee, wh

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Bryan C . Warnock
On Tue, 15 Aug 2000, Nathan Wiger wrote: > Jarkko Hietaniemi wrote: > > > > > Is Perl currently using different epochs on different platforms? If so, I > > > > Yes. MacOS and VMS. (Though VMS' localtime() uses the UNIX definition, > > just to be port

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread J. David Blackstone
>> Is Perl currently using different epochs on different platforms? If so, I > > Yes. MacOS and VMS. (Though VMS' localtime() uses the UNIX definition, > just to be portable.) MacOS' epoch zero is 1900 (or was it 1901?), > VMS' epoch zero is 17-NOV-1858 0

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread J. David Blackstone
c.) I would really rather not see this change, or see the number expressed in seconds. (MJD as seconds would really amount to just moving the epoch, and I don't think that would make anyone happy.) I still lean towards thinking that anything involving a date should be pushed out into a m

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Glenn Linderman
There is already precedent (-M, et alia) for a "perl epoch" which is time since the start of execution of the script. Negative numbers are used to represent times prior to the start of execution, and positive numbers are used to represent times after the start of execution. The &

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Gisle Aas
[EMAIL PROTECTED] writes: > Midnight, Jan 1, 2000, Greenwich time > > seems like a good candidate. <http://www.naggum.no/lugm-time.html> have found 2000-03-01 to be a good epoch. It makes -mm-dd decoding and leap year calculations cheaper/simpler as it is the closest sta

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Dan Sugalski
At 02:23 PM 8/15/00 -0400, [EMAIL PROTECTED] wrote: >Modified Julian Day 0 thus started on 17 Nov 1858 (Gregorian) at 00:00:00 >UTC. >(somebody threw that date out, It appears to be purely >arbitrary rather than based on some celestial event) Not arbitrary at all. From: http://www.kgb.com/calend.

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread GregLondon
that navigation using sextants wanted to keep things as simple as possible, so easily dividible numbers were quite desirable.) so its all arbitrary. but most people developing perl use the gregorian calendar. and it seems to be fairly widespread as far as calendars go. and in the spirit of &qu

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Dan Sugalski <[EMAIL PROTECTED]> wrote: > I think I'd snag a date after the last western country went Julian, just to > avoid some of the less fun time conversion issues. (How long ago Jan 1, > 1690 was depends on what country you're in) I think you mean

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Nathan Wiger
Jonathan Scott Duff wrote: > >> standard like 0 AD isn't bad. > > Standard for whom? I bet there are *millions* of Jews for whom "0 AD" > is meaningless. s/Jews/ calendar that predates christianity>/ Good point. Unix epoch it is! :-) -Nate

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Dan Sugalski
At 09:25 AM 8/15/00 -0700, Larry Wall wrote: >[EMAIL PROTECTED] writes: >: Yep. Or more generally "Standardize Perl on all platforms to one >: common time epoch" and reccommend the Unix epoch since it's so >: widespread. :-) > >Oh, gee, where's your sens

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Jonathan Scott Duff
On Tue, Aug 15, 2000 at 09:45:55AM -0700, Nathan Wiger wrote: > I don't know about this. Sounds cool, but I think we should stick to > something that somebody somewhere uses already. Of course, something > standard like 0 AD isn't bad. Standard for whom? I bet there are *millions* of Jews for wh

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Jonathan Scott Duff
On Tue, Aug 15, 2000 at 09:25:34AM -0700, Larry Wall wrote: > [EMAIL PROTECTED] writes: > : Yep. Or more generally "Standardize Perl on all platforms to one > : common time epoch" and reccommend the Unix epoch since it's so > : widespread. :-) > > Oh, gee, wh

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Nathan Wiger
Larry Wall wrote: > > Oh, gee, where's your sense of history? (As in creating our own. :-) > Maybe we should invent our own epoch, like the year 2000. Or use a > really standard one, like the year 0 AD (aka 1 BC). I don't know about this. Sounds cool, but I think we sho

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Larry Wall
[EMAIL PROTECTED] writes: : Yep. Or more generally "Standardize Perl on all platforms to one : common time epoch" and reccommend the Unix epoch since it's so : widespread. :-) Oh, gee, where's your sense of history? (As in creating our own. :-) Maybe we should invent our

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Jonathan Scott Duff
On Tue, Aug 15, 2000 at 08:44:48AM -0700, Nathan Wiger wrote: > There seems to be a groundswell against this idea, which is fine by me > (heck, just because it's my idea doesn't me it's a GOOD one!). > > Here's a different proposal, same vein: "Standardize a

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Nathan Wiger
Jarkko Hietaniemi wrote: > > > Is Perl currently using different epochs on different platforms? If so, I > > Yes. MacOS and VMS. (Though VMS' localtime() uses the UNIX definition, > just to be portable.) MacOS' epoch zero is 1900 (or was it 1901?), > VMS&#

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Jonathan Scott Duff
On Mon, Aug 14, 2000 at 08:40:32PM -0700, Nathan Wiger wrote: > No, but currently Perl IS forcing Windows, Mac, and BeOS users to > understand what the UNIX epoch is. So you're proposing that rather than give one platform (unix) an advantage, we force all platforms to use some other

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Dan Sugalski
At 10:56 PM 8/14/00 -0500, Jarkko Hietaniemi wrote: > > Is Perl currently using different epochs on different platforms? If so, I > >Yes. MacOS and VMS. (Though VMS' localtime() uses the UNIX definition, >just to be portable.) MacOS' epoch zero is 1900 (or was it 19

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Chaim Frenkel
nto modules (although I can RA> also see the wisdom in leaving well enough alone). But why not go with RA> the most commonly used and most widely analyzed epoch? Folks, the only problem that everyone seems to be arguing about is what the EPOCH is. Who cares what the epoch is? Create $Perl::

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Russ Allbery
ltime() and gmtime(). Agreed. I guess I don't really care what we use for an epoch for our sub-second interface; I just don't see MJD as obviously better or more portable. I'd actually be tentatively in favor taking *all* of the time stuff and removing it from the core, under the modul

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Tim Jenness
On 14 Aug 2000, Russ Allbery wrote: > Day resolution is insufficient for most purposes in all the Perl scripts > I've worked on. I practically never need sub-second precision; I almost > always need precision better than one day. > MJD allows fractional days (otherwise it would of course be us

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Damian Conway
> Yes. MacOS and VMS. (Though VMS' localtime() uses the UNIX definition, > just to be portable.) MacOS' epoch zero is 1900 (or was it 1901?), 1904 (if it matters). Damian

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Jarkko Hietaniemi
> Is Perl currently using different epochs on different platforms? If so, I Yes. MacOS and VMS. (Though VMS' localtime() uses the UNIX definition, just to be portable.) MacOS' epoch zero is 1900 (or was it 1901?), VMS' epoch zero is 17-NOV-1858 00:00:00.00, for some astron

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Russ Allbery
Nathan Wiger <[EMAIL PROTECTED]> writes: >> Anyway, it doesn't matter; it's a lot more widely used than any other >> epoch, and epochs are completely arbitrary anyway. What's wrong with >> it? > I think the "What's wrong with it?"

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Nathan Wiger
> Anyway, it doesn't matter; it's a lot more widely used than any other > epoch, and epochs are completely arbitrary anyway. What's wrong with it? I think the "What's wrong with it?" part is the wrong approach to this discussion. Personally, I'm a 100

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Russ Allbery
stems programmers), as it's what time() returns, and pretty much any C programmer will have used that at some point or another. It's also so widespread as to be at least somewhat familiar to non-Unix programmers. Anyway, it doesn't matter; it's a lot more widely used than an

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Tim Jenness
On 14 Aug 2000, Russ Allbery wrote: > Nathan Wiger <[EMAIL PROTECTED]> writes: > > > The idea would be twofold: > > >1. time() would still return UNIX epoch time. However, it > > would not be in core, and would not be the primary > >

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Russ Allbery
Nathan Wiger <[EMAIL PROTECTED]> writes: > The idea would be twofold: >1. time() would still return UNIX epoch time. However, it > would not be in core, and would not be the primary > timekeeping method. It would be in Time::Local for > compatibility

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Bryan C . Warnock
On Mon, 14 Aug 2000, Nathan Wiger wrote: >1. time() would still return UNIX epoch time. However, it > would not be in core, and would not be the primary > timekeeping method. It would be in Time::Local for > compatibility (along with localtime and gmtime). >

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-14 Thread Nathan Wiger
> > I'm not sure anyone does that much in the way of time/date work that it'd > > make a difference. Besides, we're talking internal here--time() may still > > return Unix epoch seconds for compatibility reasons. > > Blah! I saw the prosal for an mjdat