Last modified on 13 November 2012, at 10:51

REBOL Programming/request-date

USAGE:Edit

REQUEST-DATE /offset xy /date when 

DESCRIPTION:Edit

Requests a date.

REQUEST-DATE is a function value.

REFINEMENTSEdit

  • /offset
    • xy -- (Type: any)
  • /date
    • when -- Default date (Type: any)

SOURCE CODEEdit

request-date: func [
    "Requests a date." 
    /offset xy 
    /date when "Default date"
][
    result: when 
    base: today: any [when now/date] 
    either date-lay [calc-month base/month] [init] 
    either offset [inform/offset date-lay xy] [inform date-lay] 
    result
]