HP3000-L Archives

January 2001, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Wed, 31 Jan 2001 19:31:25 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
Ric Merz <[log in to unmask]> wrote:
> Even though the offical Julian version (see web site, thanks Wirt) is
> different, the HP Calendar intrinsic returns it as YYDDD.  So 01/31/01 is
> 101031.  (BTW, the Calendar intrinsic is Y2K27 compliant.  I hope HP fixes
> it before the last minute.)

It's important to note that the high-order 7 bits of the return from
the CALENDAR intrinsic do not represent the year of the century, but
rather the year since 1900.  Ric's example is correct:  for the date
2001-01-31, the year is 101 and the day is 31.

New development probably ought to be using the HPCALENDAR intrinsic
instead, which uses 23 bits for the year since 1900.  That should
hold us for a while.  :-)

Walter

ATOM RSS1 RSS2