

"Asia/Jakarta", "UTC") or DateTime::TimeZone object. Either string containing time zone name (e.g. Used to force the time zone of DateTime objects to be formatted. It complements DateTime::Format::ISO8601. This module formats DateTime objects as ISO8601 date/time strings. Say $format->format_datetime($dt_utc) # => # effect of setting second_precision to 3 # effect of setting time_zone attribute to 'Asia/Jakarta' (which has the offset of +07:00): Say $format->format_date($dt_floating) # => įormatting times: say $format->format_time($dt_floating) # => 19:02:03 # effect of setting time_zone attribute to 'Asia/Jakarta' (which has the offset +07:00): Say $format->format_date($dt_sometz) # => Say $format->format_date($dt_floating_frac) # => My $dt_sometz = DateTime->new(year=>2018, month=>6, day=>23, hour=>19, minute=>2, second=>3, time_zone=>'Asia/Jakarta') įormatting dates: say $format->format_date($dt_floating) # =>

# second_precision => 3, # optional, default is undef

# time_zone => '.', # optional, default is DateTime object's time zone My $format = DateTime::Format::ISO8601::Format->new( SYNOPSIS use DateTime::Format::ISO8601::Format This document describes version 0.005 of DateTime::Format::ISO8601::Format (from Perl distribution DateTime-Format-ISO8601-Format), released on. DateTime::Format::ISO8601::Format - Format DateTime object as ISO8601 date/time string VERSION
