module Sequel::CurrentDateTimeTimestamp::DatasetMethods

Public Instance Methods

current_datetime() click to toggle source

Return an instance of Sequel.datetime_class that will be literalized as CURRENT_TIMESTAMP.

   # File lib/sequel/extensions/current_datetime_timestamp.rb
34 def current_datetime
35   (Sequel.datetime_class == ::Time ? Time : DateTime).now
36 end