Arexx (63/67)

From:Neil Bothwick
Date:23 Oct 99 at 00:49:11
Subject:Re: Date

From: "Neil Bothwick" <neil@wire.net.uk>

Thomas Hurst said,

>> I need for a part of one of my scripts, something that can figure out
>> the number of days between two dates eg 20-Aug-99 and 10-Oct-99 is 21
>> days. The dates are in this format, and it must be able to work over a
>> few months, and go into different years aswell. I'd appreciate any help
>> anyone can give. Thanks.

> You could use date(), but this would require some parsing of the date to a
> format it can handle.

Why? Date is perfectly capable of converting dates to days since
1-Jan-1900 or even 1-Jan-0001

> You could also use rmh.library's CompareDates() function after turning them
> into datestamps using ParseDate()

That sounds like /far/ too much work.

Neil



Neil Bothwick - New Media Editor, Amiga Active Magazine
Connected via Wirenet, The UK's first Amiga-only internet access provider
http://www.wire.net.uk


Asking whether machines can think is like asking whether submarines can swim.

--------------------------- ONElist Sponsor ----------------------------

??? Computer Questions ==> Free Answers From Live Experts ! ! !
go to EXPERTCITY.COM
<a href=" http://clickme.onelist.com/ad/expertcity15 ">Click Here</a>

------------------------------------------------------------------------
ARexx mailing list - No flames, no overquoting, no crossposting. Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com