[#6363] Re: rescue clause affecting IO loop behavior — ts <decoux@...>

>>>>> "D" == David Alan Black <dblack@candle.superlink.net> writes:

17 messages 2000/11/14
[#6367] Re: rescue clause affecting IO loop behavior — David Alan Black <dblack@...> 2000/11/14

Hello again --

[#6582] best way to interleaf arrays? — David Alan Black <dblack@...>

Hello --

15 messages 2000/11/26

[#6646] RE: Array Intersect (&) question — Aleksi Niemel<aleksi.niemela@...>

Ross asked something about widely known and largely ignored language (on

23 messages 2000/11/29
[#6652] RE: Array Intersect (&) question — rpmohn@... (Ross Mohn) 2000/11/29

aleksi.niemela@cinnober.com (Aleksi Niemel) wrote in

[#6723] Re: Array Intersect (&) question — Mathieu Bouchard <matju@...> 2000/12/01

> >Use a hash. Here's code to do both and more. It assumes that

[#6656] printing/accessing arrays and hashes — raja@... (Raja S.)

I'm coming to Ruby with a Python & Common Lisp background.

24 messages 2000/11/30

[ruby-talk:6057] Re: Time.local bug?

From: ts <decoux@...>
Date: 2000-11-04 13:55:30 UTC
List: ruby-talk #6057
>>>>> "C" == Conrad Schneiker/Austin/Contr/IBM <schneik@us.ibm.com> writes:

C> ... To follow up on related notes, it seems like no separate check is made 
C> to distinguish when leap seconds are specified in error versus when they 
C> are legitimate.

 Except that ruby don't work with leap seconds.

 The difference between Solaris and Linux is here (in time.c)

327     #if defined(HAVE_TM_ZONE)
328             tm = localtime(&guess);
329             if (!tm) goto error;
330             guess -= tm->tm_gmtoff;
331             tm = localtime(&guess);
332             if (!tm) goto error;
333             if (tm->tm_hour != tptr->tm_hour) {
334                 guess += (tptr->tm_hour - tm->tm_hour)*3600;
335             }
336     #else
337             struct tm gt, lt;
338             long tzsec;
339
340             t = 0;
341             tm = gmtime(&guess);

 with Linux HAVE_TM_ZONE is defined (undef for Solaris) and with leap
 seconds it is in the case where (tm->tm_hour != tptr->tm_hour), this is
 why it give this strange result (tptr->tm_hour == 23 and tm->tm_hour == 0)

pigeon% ruby -ve 'p Time.local(1997,12,31,23,59,60)'
ruby 1.6.1 (2000-09-27) [i686-linux]
Thu Jan 01 23:00:00 CET 1998
pigeon% 



Guy Decoux

In This Thread

Prev Next