Thanks Allen!

Sharriff Aina
med.iq information & quality in healthcare AG
Gutenbergstr. 42
41564 Kaarst
tel.: 02131-3669-0
fax: 02131-3669-599
www.med-iq.de


                                                                                       
                            
                    "Allen Kamp"                                                       
                            
                    <allen@rebolf        An:     <[EMAIL PROTECTED]>                
                            
                    orces.com>           Kopie:                                        
                            
                    Gesendet von:        Thema:  [REBOL] Re: [REBOL]                   
                            
                    rebol-bounce@                                                      
                            
                    rebol.com                                                          
                            
                                                                                       
                            
                                                                                       
                            
                    25.10.00                                                           
                            
                    17:12                                                              
                            
                    Bitte                                                              
                            
                    antworten an                                                       
                            
                    rebol-list                                                         
                            
                                                                                       
                            
                                                                                       
                            




The date datetype is extremely flexible and does most of the work needed
for
making a calendar.
**The only gotcha is the month subtraction bug.**

Month Addition
date: now
date/month: date/month + 24
probe date
26-Oct-2002/1:53:07+10:00

Month Subtraction returns an incorrect date if the result would be a date
earlier than January. :-(
date: now
date/month: date/month - 24
probe date
26-Feb-23844/1:53:55+10:00
(submitted to feedback)

Subtraction via day does not have that problem
date: now
date/day: date/day - 365
probe date
27-Oct-1999/2:04:31+10:00

To get first day of the month
date: now
date/day: 1
probe date
1-Oct-2000/2:00:17+10:00
probe date/weekday
7

To get the last day of the month
date: now
date/month: date/month + 1
date/day: 1
date/day: date/day - 1
probe date
31-Oct-2000/2:06:32+10:00
probe date/weekday
2

Hope this helps

Cheers,

Allen K

----- Original Message -----
From: "Geoffrey Koplas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 26, 2000 12:05 AM
Subject: [REBOL] Re: [REBOL]


> Of course, that wouldn't make any sense at all.
>
> Oh well, I have a tendency to think that if the answer is simple, I
didn't
> understand the question.
>
> All's well that ends well.
>
> -Geoff
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of
> > Geoffrey Koplas
> > Sent: Wednesday, October 25, 2000 9:35 AM
> > To: [EMAIL PROTECTED]
> > Subject: [REBOL] Re: [REBOL]
> >
> >
> > Just guessing here, jn, but I think he might mean the following issue:
> >
> >
> > >> thisday: now/date
> > == 25-Oct-2000
> > >> otherday: thisday + 5
> > == 30-Oct-2000
> > >> print otherday - thisday
> > 5
> >
> > -- perhaps he's looking for a way to obtain that "otherday - thisday"
> > results in the date format for October fifth, not the integer 5.
> >
> > Just guessing on the nature of the original question,
> >
> > -Geoff
> >
> >
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>

--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.





-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to