home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 13 
 Jame Clay to Maurice Kinal 
 localtime 
 14 Jul 11 17:50:24 
 
Hi Maurice!

> I more or less took your advice about man pages except decided to 
> let the perldoc site do all the dirty work for me

   I often find myself using that site even though I have the main Perl
documentation installed locally...
   

> and found this within
> http://perldoc.perl.org/functions/localtime.html;
> "$mon the month in the range 0..11, with 0 indicating January and 11
> indicating December. This makes it easy to get a month name from a list"

    As you mentioned, that makes sense.


> That makes perfect sense but doesn't really explain the 16 bit binary
> month in FTN pkt headers or does it?

   Wasn't 16 bits the 'standard' size for an integer at the time?  (And still
so, for at least some systems.)


>  Do any of your modules use the output from an incoming packet
>  in that manner?

   In which "manner"?  


>  Offhand I cannot really see it being of any real consequence but
> then again I haven't seen the value of ANY of the data within a
> pkt header so I might be extremely prejudiced.

     The packet header is basically for information above the level of
they message itself, I've always thought...


> At the very least I now know why $mon is 0..11 in localtime and it has
> nothing to do with direct display of it's value and more to do with zero
> based lists, arrays, etc.

   That's what I've thought, too...




Jame

--- BBBS/LiI v4.01 Flag
 * Origin: Rocasa BBS (1:120/546)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca