Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Altering dates

From: carl::cybercraft::co::nz at: 24-Dec-2003 22:22

Is it safe to just give a date's year a new value (like I have below), or should you make a new date? (February 29th won't crop up with what I'm doing.) The weekday is right after the change (as shown below), but are there any other issues?
>> date: now/date
== 4-Jul-2003
>> date/weekday
== 5
>> date/year: 2002
== 2002
>> date
== 4-Jul-2002
>> date/weekday
== 4 -- Carl Read