Flowdock
method

time_with_datetime_fallback

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: Time
time_with_datetime_fallback(utc_or_local, year, month=1, day=1, hour=0, min=0, sec=0, usec=0) public

DEPRECATED: Use +Time#utc+ or +Time#local+ instead.

Returns a new Time if requested year can be accommodated by Ruby’s Time class (i.e., if year is within either 1970..2038 or 1902..2038, depending on system architecture); otherwise returns a DateTime.

Show source
Register or log in to add new notes.