Skip to content

Commit

Permalink
Fixes X:D:TimezoneClash, refs #2683
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Mar 19, 2019
1 parent 9d23c2b commit 8838389
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/Type/X/DateTime/TimezoneClash.pod6
Expand Up @@ -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.