method

in_time_zone

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: String
in_time_zone(zone = ::Time.zone) public

Converts String to a TimeWithZone in the current zone if Time.zone or Time.zone_default is set, otherwise converts String to a Time via String#to_time

Show source
Register or log in to add new notes.