Phoenix.pm: odd...

Anthony R. Nemmer edelsys at swlink.net
Wed Apr 28 18:12:12 CDT 1999


At 03:57 PM 4/28/99 -0700, you wrote:
>On Wed, 28 Apr 1999, Anthony R. Nemmer wrote:
>
>> At 03:23 PM 4/28/99 -0700, you wrote:
>> >
>> >I just called localtime (time) and got:
>> >
>> >     59 17 15 28 3 99 3 117 0 
>> >
>> >Does this not read as _March_ 28th instead of April 28th?
>
>> Month ranges from 0 to 11, I believe.
>> 
>> Tony
>
>That was my first thought, too... but then why do all the other fields
>seem to start at 1 instead of 0?  Much kink...
>
>
>---------------------------------------------------------------------------
----
>Glen G. Walker,  coyotl at primenet.com
>www.primenet.com/~coyotl	
>---------------------------------------------------------------------------
----
>

It looks like this is an artifact of the underlying c structure, tm.
I suppose the rationale is to make it easier to index into
arrays for those time values where that makes the most sense. =)

Tony




More information about the Phoenix-pm mailing list