class Sequel::SQLTime

  1. lib/sequel/sql.rb
Parent: Sequel

Time subclass that gets literalized with only the time value, so it operates like a standard SQL time type.

Methods

Public Class

  1. create

Public Class methods

create (hour, minute, second, usec = 0)

Create a new SQLTime instance given an hour, minute, and second.

[show source]
# File lib/sequel/sql.rb, line 47
def self.create(hour, minute, second, usec = 0)
  t = now
  local(t.year, t.month, t.day, hour, minute, second, usec)
end