date->ymd

Name

date->ymd -- Returns the parts of a date in the Gregorian calendar.

Type: function

Synopsis

date->ymd( date, year month day);

Arguments

date

An instance of <date>

Return Values

year

An instance of <fixnum>

month

An instance of <fixnum>

day

An instance of <fixnum>

Description

date->ymd is the inverse of ymd->date (as you might guess from the name), and returns the broken out year, month, and day for a given date object.