Chapter 7. Date

Table of Contents

new - Creates a new Date object
assign - Assigns a value to a Date
+ - Adds to a Date
- - Subtracts from a Date
<=> - Compares a Date
add_months - Adds months to a Date
year - Returns the year
mon - Returns the month
month - Returns the month
day - Returns the day
hour - Returns the hours
min - Returns the minutes
sec - Returns the seconds
wday - Returns the day of the week
yday - Returns the day of the year
last_day - Returns the last date of the month
next_day - Returns the date of the next specified day of the week
default_fmt= - Sets the string format
to_a - Returns an Array representation
to_s - Returns a String representation
to_builtin - Returns a String representation