Method: Sequel::SQLTime.create
- Defined in:
- lib/sequel/sql.rb
.create(hour, minute, second, usec = 0) ⇒ Object
Create a new SQLTime instance given an hour, minute, second, and usec.
52 53 54 55 56 |
# File 'lib/sequel/sql.rb', line 52 def create(hour, minute, second, usec = 0) t = date meth = Sequel.application_timezone == :utc ? :utc : :local public_send(meth, t.year, t.month, t.day, hour, minute, second, usec) end |