Created
May 21, 2016 12:49
-
-
Save dogbert17/a4d502c968c7ee91607a66a31298c848 to your computer and use it in GitHub Desktop.
Attempt to document X::Temporal::InvalidFormat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin pod | |
=TITLE class X::Temporal::InvalidFormat | |
=SUBTITLE Error due to using an invalid format when creating a DateTime or Date | |
class X::Temporal::InvalidFormat does X::Temporal is Exception { } | |
This exception is thrown when code tries to create a C<DateTime> or C<Date> object | |
using an invalid format. | |
my $dt = Date.new("12/25/2015"); # 'invalid Date string '12/25/2015'; use yyyy-mm-dd instead' | |
=head1 Methods | |
=head2 method invalid-str | |
Returns the invalid format string (C<12/25/2015> in the example above) | |
=head2 method target | |
Returns the target type (C<Date> in the example above) | |
=head2 method format | |
Returns valid format strings for the target type in question, (C<yyyy-mm-dd> in the example above) | |
=end pod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment