README

NAME

Date::Calendar::Bahai - Conversions from / to the Bah谩始铆 calendar

SYNOPSIS

use Date::Calendar::Bahai;
my Date $dt-greg;
my Date::Calendar::Bahai $dt-bahai;

$dt-greg  .= new(2021, 5, 17);
$dt-bahai .= new-from-date($dt-greg);

say $dt-bahai;
# --> 0178-04-01
say $dt-bahai.strftime("%A %d %B %Y");
# --> Kam谩l 1 鈥楢岷揳mat 178

Converting a Bahai date (e.g. 19 Jam谩l 178) into Gregorian

use Date::Calendar::Bahai;
my Date::Calendar::Bahai $dt-bahai;
my Date $dt-greg;

$dt-bahai .= new(year => 178, month => 3, day => 19);
$dt-greg   = $dt-bahai.to-date;

say $dt-greg;
# --> 2021-05-16

DESCRIPTION

Date::Calendar::Bahai is a class representing dates in the Bah谩始铆 calendar. It allows you to convert a Bah谩始铆 date into Gregorian or into other implemented calendars, and it allows you to convert dates from Gregorian or from other calendars into Bah谩始铆.

The Date::Calendar::Bahai class gives the early version of the Bah谩始铆 calendar, which is synchronised with the Gregorian calendar. The new version, after the 2015 reform, is partially implemented in Date::Calendar::Bahai::Astronomical, included in this distribution.

INSTALLATION

zef install Date::Calendar::Bahai

or

git clone https://github.com/jforget/raku-Date-Calendar-Bahai.git
cd raku-Date-Calendar-Bahai
zef install .

AUTHOR

Jean Forget

COPYRIGHT AND LICENSE

Copyright 2021, 2024 Jean Forget

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

Date::Calendar::Bahai v0.1.0

Conversions from / to the Bah谩始铆 calendar

Authors

  • Jean Forget

License

Artistic-2.0

Dependencies

Date::Calendar::Strftime

Test Dependencies

Provides

  • Date::Calendar::Bahai
  • Date::Calendar::Bahai::Astronomical
  • Date::Calendar::Bahai::Common
  • Date::Calendar::Bahai::Names

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