Time subclass that gets literalized with only the time value, so it operates like a standard SQL time type.
Create a new SQLTime instance given an hour, minute, and second.
# 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
Return a string in HH:MM:SS format representing the time.
# File lib/sequel/sql.rb, line 53 def to_s(*args) if args.empty? strftime('%H:%M:%S') else # Superclass may have defined a method that takes a format string, # and we shouldn't override in that case. super end end
Generated with the Darkfish Rdoc Generator 2.