local « Time « Ruby






1.The Time class allows you to create Time objects based on arbitrary dates:
2.To set a given time, use the local method (mktime is a synonym):
3.The arguments to Time.local are (in order) year, month, date, hour, minutes, seconds. You can also call local with these arguments:
4.ArgumentError: time out of range
5.Create Time.local