Day of Week

Pickering, John (NORBORD) PICKERIJ@norbord.com
Fri, 4 Jun 2004 13:57:06 -0400


John

In PowerHouse you acn get the day of week with:

>define d-dow int*2 = mod(days(your-date),7)

Sunday = 0
Monday = 1
Tuesday = 2
Wednesday = 3
Thursday = 4
Friday = 5
Saturday = 6

In MPE there's the system variable HPDAY which does the same thing but
doesn't use the same values :-(

Sunday = 1
Monday = 2
Tuesday = 3
Wednesday = 4
Thursday = 5
Friday = 6
Saturday = 7


Regards,
JWP


-----Original Message-----
From: Penney, John [mailto:John.Penney@corr.ca.gov]
Sent: Friday, June 04, 2004 1:36 PM
To: 'powerh-l@lists.sowder.com'; HP3000-L@RAVEN.UTC.EDU
Subject: Day of Week


Gentle Listers:

Pray tell, how does one determine the day-of-week it is? I vaguely recall
some kind of Powerhouse or HP function like dayofweek = day(20040604)
returning 5=Friday?

Or was that in another incarnation? 8=)

Many thanks for your input.

Happy Friday in any event!

John M Penney
DDPS 
California Department of Corrections
1920 Alabama Ave.
Rancho Cordova, CA 
(916)358-2247
(916)358-2322 Fax
(360)789-8159 Cellular



= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.