HP3000-L Archives

September 1998, Week 4

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:
"Paul H. Christidis" <[log in to unmask]>
Reply To:
Date:
Tue, 22 Sep 1998 11:08:00 -0700
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (53 lines)
Someone had submitted the following command file some time ago that I saved,
with a small mod in can be made to 'set' a variable with the information you
need in the proper format.

Regards
Paul H. Christidis

PARM p1="!hpmonth" p2="!hpdate" p3="!hpyear"
echo !hpfile, !hpdatef
SETVAR month    ![UPS("!p1")]
SETVAR day      ![UPS("!p2")]
SETVAR year     ![LFT(RHT("!hpdatef",4),4-LEN("!p3"))+"!p3"]
SETVAR doy_days ((month-1)*304/10)+((month+2)/10)+(((12-month)/10)*month)
SETVAR doy_ly   (1/(1+(year MOD 4)))-(1/(1+(year MOD 100)))
SETVAR doy_ly   (doy_ly+(1/(1+(year MOD 400))))*((7+month)/10)
SETVAR doy_days doy_days+doy_ly+(day-1)
ECHO Day of year for !month/!day/!year is !doy_days
if not bound(traceon) then
   DELETEVAR doy_@
else
   showvar doy_@
endif

EXAMPLE

<SYS>:doy 12 22 2005
DOY.SUPUTIL.SYS, TUE, SEP 22, 1998
Day of year for 12/22/2005 is 356


______________________________ Reply Separator
_________________________________
Subject: Re: Date Intrinsics
Author:  [log in to unmask] at mime
Date:    09/22/98 09:24


There are some things that you can do within MPEX.  I'm not sure about
regular MPE.

Later

> -----Original Message-----
> From: Eric Gustafson [SMTP:[log in to unmask]] > Sent: Tuesday,
September 22, 1998 11:06 AM
> To:   [log in to unmask]
> Subject:      Date Intrinsics
>
>
> I need a system variable or intrinsic that will return a julian date >
after
> I give it a year and a day?

ATOM RSS1 RSS2