Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use better example for Date.new(Instant)
- it's not obvious that `now` is an Instant
- some may wonder how to turn a Unix time stamp into Date
  • Loading branch information
zoffixznet committed Dec 19, 2016
1 parent 4b83bff commit dadf22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Type/Date.pod6
Expand Up @@ -48,7 +48,7 @@ or DateTime object. Optionally accepts a formatter as a named parameter.
my $date = Date.new(2042, 1, 1);
$date = Date.new(year => 2042, month => 1, day => 1);
$date = Date.new("2042-01-01");
$date = Date.new(now);
$date = Date.new(Instant.from-posix: 1482155532);
$date = Date.new(DateTime.now);
=head2 method new-from-daycount
Expand Down

0 comments on commit dadf22a

Please sign in to comment.