docs.rs failed to build hijri_date-0.1.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
hijri_date-0.5.1
HijriDate-rs
Convert between hijri and gregorian date.
The algorithm used to convert between dates is limited to:
minimum handled hijri year = 1356
maximum handled hijri year = 1500
minimum handled gregorian year = 1938
maximum handled gregorian year = 2076
Usage
convert to gregorian
extern crate hijri_date;
use HijriDate;
let hd = from_hijri;
assert_eq!;
convert to hijri
extern crate hijri_date;
use HijriDate;
let hd = from_gr;
assert_eq!;
hijri day and month name
extern crate hijri_date;
use HijriDate;
let hd = from_hijri;
println!;
compare dates
extern crate hijri_date;
use HijriDate;
let hd_1 = from_hijri;
let hd_2 = from_hijri;
assert!;
substract duration from a day
extern crate hijri_date;
use ;
let hd_1 = from_hijri;
let hd_2 = from_hijri;
assert_eq!;
substract a day from an other to get a duration
extern crate hijri_date;
use ;
let hd_1 = from_hijri;
let hd_2 = from_hijri;
assert_eq!;
formating guide
hijri
%Y hijri_year
%m hijri_month
%d hijri_day
%D hijri_day_name
%M hijri_month_name
%l hijri_month_len
gregorian
%gY gregorian_year
%gm gregorian_month
%gd gregorian_day
%gD gregorian_day_name
%gM gregorian_month_name
Credits
I translated the python version https://github.com/tytkal/python-hijiri-ummalqura to rust.
Original algorithm author
Suhail Alkowaileet
Python version author
Khalid Al-hussayen