Skip to content

Commit

Permalink
Added docs for Dateish.daycount
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Olof Hendig committed Jun 2, 2016
1 parent 9953a9c commit dc24fbb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/Type/Dateish.pod
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,23 @@ Usage:
Returns the date in C<YYYY-MM-DD> format (L<ISO 8601|http://en.wikipedia.org/wiki/ISO_8601>)
=head2 method daycount
Defined as:
method daycount(Dateish:D:) returns Int:D
Usage:
Dateish.daycount
Returns the number of days from the epoch Nov. 17, 1858 to the
day of the invocant. The daycount returned by this method is the
MJD, i.e. the L<Modified Julian Day|https://en.wikipedia.org/wiki/Julian_day>,
which is used routinely by e.g. astronomers, geodesists, scientists
and others. The MJD convention is designed to facilitate simplified
chronological calculations.
say Date.new('1995-09-27').daycount; # 49987
=end pod

0 comments on commit dc24fbb

Please sign in to comment.