Public Instance methods
literal_datetime(v)
Round DateTime values before literalizing
[show source]
# File lib/sequel/extensions/round_timestamps.rb 32 def literal_datetime(v) 33 super(v + Rational(5, 10**timestamp_precision)/864000) 34 end
literal_sqltime(v)
Round Sequel::SQLTime values before literalizing
[show source]
# File lib/sequel/extensions/round_timestamps.rb 37 def literal_sqltime(v) 38 super(v.round(sqltime_precision)) 39 end
literal_time(v)
Round Time values before literalizing
[show source]
# File lib/sequel/extensions/round_timestamps.rb 42 def literal_time(v) 43 super(v.round(timestamp_precision)) 44 end