Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
local « Time « Ruby
Ruby
Time
local
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