Mega Code Archive

 
Categories / Ruby / Time
 

The Time class allows you to create Time objects based on arbitrary dates

# Time.local(year, month, day, hour, min, sec, msec) puts Time.local(2008, 8, 31, 2, 3, 4, 5)