DateTime.strptimeis owned by Ruby, and timezone identifiers such as Eastern Time (USA and Canada) are only provided by Rails through ActiveSupport :: TimeZone .
, DateTime . DateTime, %z %z :
Time zone:
%z - Time zone as hour and minute offset from UTC (e.g. +0900)
%:z - hour and minute offset from UTC with a colon (e.g. +09:00)
%::z - hour, minute and second offset from UTC (e.g. +09:00:00)
%:::z - hour, minute and second offset from UTC
(e.g. +09, +09:30, +09:30:30)
%Z - Time zone abbreviation name or something similar information.
%z , %z . , . , "EST" "EDT", , , , "". , , , Rails ( - . wiki- ).
, , , - , , . , - , , "" EST. -5 . Rails " ( )", , EDT , -4. - , .
№ 1 - Rails. Ruby TZInfo gem, IANA ids America/New_York.
# 2 - Rails, Time.zone.parse Rails DateTime.strptime.
( Ruby, . , - , , .)