Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (18 sloc) 768 Bytes
=begin pod =TITLE class X::DateTime::TimezoneClash =SUBTITLE Error due to using both time zone offset and :timezone =for code :skip-test class X::DateTime::TimezoneClash does X::Temporal is Exception { } This exception is thrown when code tries to create a C object specifying both a time zone offset and the named argument C<:timezone>. =for code say DateTime.new('2015-12-24T12:23:00+0200'); # works say DateTime.new('2015-12-24T12:23:00', timezone => 7200); # works say DateTime.new('2015-12-24T12:23:00+0200', timezone => 7200); # exception =head1 Methods =head2 sub message Defined as: method message() Returns 'DateTime.new(Str): :timezone argument not allowed with a timestamp offset' =end pod
You can’t perform that action at this time.