Class IceCube::TimeUtil::TimeWrapper
In: lib/ice_cube/time_util.rb
Parent: Object

A utility class for safely moving time around

Methods

add   clear_below   clear_day   clear_hour   clear_min   clear_month   clear_sec   hour=   min=   new   sec=   to_time  

Constants

CLEAR_ORDER = [:sec, :min, :hour, :day, :month, :year]   Clear everything below a certain type

Public Class methods

Public Instance methods

DST-safely add an interval of time to the wrapped time

Move to the first of the month, 0 hours

Clear to january 1st

Get the wrapped time back in its original zone & format

[Validate]