タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

RubyとActiveSupportに関するtoshi3221のブックマーク (1)

  • ActiveSupport::TimeWithZone

    Active Support Time With Zone A Time-like class that can represent a time in any time zone. Necessary because standard Ruby Time instances are limited to UTC and the system’s ENV['TZ'] zone. You shouldn’t ever need to create a TimeWithZone instance directly via new. Instead use methods local, parse, at, and now on TimeZone instances, and in_time_zone on Time and DateTime instances. Time.zone = 'Ea

    toshi3221
    toshi3221 2010/07/21
    ActiveSupport利用時は時間はタイムゾーン情報付きのTimeWithZoneを利用した方がやりやすい。Time.zoneを利用する
  • 1