HP3000-L Archives

October 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:
Jeff Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Fri, 23 Oct 1998 13:39:24 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
On Oct 23,  3:31pm, Therm-O-Link wrote:
Is there an easy way to determine if today is the last day of the
> current month?

In the CI you can write a simple script such as:

# Determine if "today" is the last day of the month.
if hpmonth = 2 and hpdate = 29 or &
   "!hpdate" = word("31,28,31,30,31,30,31,31,30,31,30,31",,hpmonth) then
   # last day of leap year Feb or last day of any month
   echo Today (!hpdate) is the last day of ![word(hpdatef,,2)]
endif



Regards,
Jeff Vance, CSY

--

ATOM RSS1 RSS2