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

[REBOL] [date date! month month-bounds] MONTH-BOUNDS func design

From: gregg:pointillistic at: 28-Jan-2008 14:42

Given a function, MONTH-BOUNDS, that returns the first and last date of a month, how would you like it to work? Should it return dates only by default, or include time values (0:0:0 for the first day and 23:59:59 for the last). Should it look at the incoming parameter and include the time only if the input date does? Should there be /date and/or /time refinements? Looking at it another way, what result would you expect, given these calls (assuming it's called today, 28-jan-2008): month-bounds now month-bounds now/precise month-bounds 1 month-bounds 0 month-bounds -1 this-month next-month last-month Let me know what you think. -- Gregg