Module: Mongoid::Criteria::Queryable::Extensions::TimeWithZone

Defined in:
lib/mongoid/criteria/queryable/extensions/time_with_zone.rb

Overview

This module contains additional time with zone behaviour.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#__evolve_time__Time

Evolve the time into a utc time.

Examples:

Evolve the time.

time.__evolve_time__

Returns:

  • (Time)

    The time in UTC.

Since:

  • 1.0.0



18
19
20
# File 'lib/mongoid/criteria/queryable/extensions/time_with_zone.rb', line 18

def __evolve_time__
  utc
end