Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more Mojo::Date examples
  • Loading branch information
kraih committed Aug 21, 2014
1 parent c2e7c6f commit a9d9168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Mojo/Date.pm
Expand Up @@ -142,6 +142,10 @@ Parse date.
# RFC 3339
say Mojo::Date->new('1994-11-06T08:49:37Z')->epoch;
say Mojo::Date->new('1994-11-06T08:49:37')->epoch;
say Mojo::Date->new('1994-11-06T08:49:37.21Z')->epoch;
say Mojo::Date->new('1994-11-06T08:49:37+01:00')->epoch;
say Mojo::Date->new('1994-11-06T08:49:37-01:00')->epoch;
=head2 to_datetime
Expand Down

0 comments on commit a9d9168

Please sign in to comment.