----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 22, 2000 6:34 AM
Subject: [REBOL] .r to html monthly calendar prelude Re:(2)


>
> >Here is something more efficient :
> >
> >>> firstOfNextMonth: firstOfMonth/month: firstOfMonth/month + 1
> >== 1-Mar-2000
> >>> daysInMonth: firstOfNextMonth - firstOfMonth
> >== 29
> >
> >
> >print [" There are " daysInMonth " days in " currentMonth now/year]
> >
> >Olivier
>
> Thanks for the elegant code above... run the following... an oddity
> occurs...
>

You're right. There is something wrong in REBOL with the /month refinement
of date values.
Here is my test :
>> d: now/date
== 26-Feb-2000
>> d/day: 1
== 1-Feb-2000
>> d/day: 2
== 2-Feb-2000
>> d/day: 0
== 31-Jan-2000
>> d/day: -1
== 30-Jan-2000
>> d/month: 1
== 26-Jan-2000
>> d/month: 0
== 26-Apr-23845
>> d/month: -1
== 26-Mar-23845

Olivier.

Reply via email to