Method: Sequel::SequelMethods#datetime_class

Defined in:
lib/sequel/core.rb

#datetime_classObject

Sequel can use either Time or DateTime for times returned from the database. It defaults to Time. To change it to DateTime:

Sequel.datetime_class = DateTime

Note that Time and DateTime objects have a different API, and in cases where they implement the same methods, they often implement them differently (e.g. + using seconds on Time and days on DateTime).



58
59
60
# File 'lib/sequel/core.rb', line 58

def datetime_class
  @datetime_class
end