Date::YearDay

Provides creation of a Raku Date object by year and day-of-year

NAME

Date::YearDay - Provides creation of a Raku Date object by year and day-of-year

SYNOPSIS

use Date::YearDay;
my ($year, $day-of-year) = 2021, 42;
my $d  = Date::YearDay.new: :$year, :$day-of-year;
say $d ~~ Date; # OUTPUT: «True␤»

# alternatively:
my $d2 = Date::YearDay.new: :$year, :doy($day-of-year);
say $d2.Str; # OUTPUT: «2021-02-11␤»

DESCRIPTION

Class Date::YearDay is child class of a Raku Date object whose purpose is to provide Date instantiation by entering a year and day-of-year. As a child of the Date class it inherits all the Date class' methods without further action by the user.

AUTHOR

Tom Browder [email protected]

COPYRIGHT AND LICENSE

Copyright 2021 Tom Browder

This library is free software; you may redistribute it or modify it under the Artistic License 2.0.

Date::YearDay v0.0.2

Provides creation of a Raku Date object by year and day-of-year

Authors

  • Tom Browder

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Date::YearDay

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.