Skip to content
Permalink
Browse files

Fixes X:D:TimezoneClash, refs #2683

  • Loading branch information...
JJ committed Mar 19, 2019
1 parent 9d23c2b commit 88383891a74433ce9439966d740610faf07a82bc
Showing with 8 additions and 4 deletions.
  1. +8 −4 doc/Type/X/DateTime/TimezoneClash.pod6
@@ -10,15 +10,19 @@ class X::DateTime::TimezoneClash does X::Temporal is Exception { }
This exception is thrown when code tries to create a C<DateTime> object
specifying both a timezone offset and the named argument C<:timezone>.
say DateTime.new('2015-12-24T12:23:00+0200'); # works
say DateTime.new('2015-12-24T12:23:00', timezone => 7200); # works
=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 message
=head2 sub message
Defined as:
Returns 'DateTime.new(Str): :timezone argument not allowed with a timestamp offset'
method message()
Returns 'DateTime.new(Str): :timezone argument not allowed with a timestamp
offset'
=end pod

0 comments on commit 8838389

Please sign in to comment.
You can’t perform that action at this time.