Date

 view release on metacpan or  search on metacpan

lib/Date.pod  view on Meta::CPAN

=head4 weeks_in_year()

Returns total number of weeks in the current year (52 or 53).


=head4 week_of_year()

    my $week_number = $date->week_of_year();
    my ($week_year, $week_number) = $date->week_of_year();

Returns information about the calendar week which contains this date object [1..53].

The first week of the year is defined by ISO as the one which contains the fourth day of January, which is equivalent to saying that it's the first week to overlap the new year by at least four days.

Typically the week year will be the same as the year that the object is in, but dates at the very beginning of a calendar year often end up in the last week of the prior year, and similarly, the final few days of the year may be placed in the first w...


=head4 error()

Returns error occured during creating or cloning object (if any) as L<XS::STL::ErrorCode> object.


=head4 truncated()

Return copy of the current date with HMS set to 0. Same as C<clone(hour => 0, min => 0, sec => 0)>, but runs faster.



( run in 0.349 second using v1.01-cache-2.11-cpan-5dc5da66d9d )