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
Menu
Create Time.local : local « Time « Ruby
Ruby
Time
local
Create Time.local
Time.local(1865,4,9) Time.local(2100,1,1)
Related examples in the same category
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