HP3000-L Archives

November 2000, Week 2

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:
Mark Boyd <[log in to unmask]>
Reply To:
Mark Boyd <[log in to unmask]>
Date:
Wed, 8 Nov 2000 16:10:26 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Thank you Shawn and Barry
Our problem was in incorrectly interpreting the value returned by calendar.
We used Cobol to display the value of an unsigned 16 bit integer, which
displayed today as 4093.  I should have computed that to a signed double
word (-14023) and then converted that to binary.

Thanks again.


-----Original Message-----
From: Shawn Gordon [mailto:[log in to unmask]]
Sent: Wednesday, November 08, 2000 2:11 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] Calendar date format.

At 01:55 PM 11/8/2000, Mark Boyd wrote:
>Could someone help us with the intrinsic calendar date format?
>We're trying to rebuild dates from calendar date formats and the year
always
>comes out wrong.
>
>Calendar returns today as 4023, when we try to turn that back into today,
>the year is 2001.

according to my handy dandy Orbit Pocket Guide, bits 0:7 are the years
since 1900 range 0 to 127 (so 2027 is the end).  Bits 7 to 9 are the day of
the year.

Regards,

Shawn Gordon
President
theKompany.com
www.thekompany.com
949-713-3276

ATOM RSS1 RSS2