pub struct BookHebrew {
pub year: i32,
pub month: u8,
pub day: u8,
}
Expand description
Biblical Hebrew dates. The months are reckoned a bit strangely, with the new year occurring on Tishri (as in the civil calendar) but the months being numbered in a different order
Fields§
§year: i32
The year
month: u8
The month
day: u8
The day
Implementations§
Source§impl BookHebrew
impl BookHebrew
Sourcepub fn to_civil_date(self) -> (i32, u8, u8)
pub fn to_civil_date(self) -> (i32, u8, u8)
The civil calendar has the same year and day numbering as the book one, but the months are numbered differently
Sourcepub fn from_civil_date(civil_year: i32, civil_month: u8, civil_day: u8) -> Self
pub fn from_civil_date(civil_year: i32, civil_month: u8, civil_day: u8) -> Self
The civil calendar has the same year and day numbering as the book one, but the months are numbered differently
Sourcepub(crate) fn molad(book_year: i32, book_month: u8) -> Moment
pub(crate) fn molad(book_year: i32, book_month: u8) -> Moment
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2244
Sourcefn last_month_of_book_hebrew_year(book_year: i32) -> u8
fn last_month_of_book_hebrew_year(book_year: i32) -> u8
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2217
Sourcefn book_hebrew_calendar_elapsed_days(book_year: i32) -> i32
fn book_hebrew_calendar_elapsed_days(book_year: i32) -> i32
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2261
Sourcefn book_hebrew_year_length_correction(book_year: i32) -> u8
fn book_hebrew_year_length_correction(book_year: i32) -> u8
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2301
Sourcepub fn book_hebrew_new_year(book_year: i32) -> RataDie
pub fn book_hebrew_new_year(book_year: i32) -> RataDie
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2294
Sourcepub fn days_in_book_hebrew_year(book_year: i32) -> u16
pub fn days_in_book_hebrew_year(book_year: i32) -> u16
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2315
Sourcepub fn is_hebrew_leap_year(book_year: i32) -> bool
pub fn is_hebrew_leap_year(book_year: i32) -> bool
Sourcefn is_long_marheshvan(book_year: i32) -> bool
fn is_long_marheshvan(book_year: i32) -> bool
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2321
Sourcefn is_short_kislev(book_year: i32) -> bool
fn is_short_kislev(book_year: i32) -> bool
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2326
Sourcepub fn last_day_of_book_hebrew_month(book_year: i32, book_month: u8) -> u8
pub fn last_day_of_book_hebrew_month(book_year: i32, book_month: u8) -> u8
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2230
Sourcepub fn fixed_from_book_hebrew(date: BookHebrew) -> RataDie
pub fn fixed_from_book_hebrew(date: BookHebrew) -> RataDie
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2331
Sourcepub fn book_hebrew_from_fixed(date: RataDie) -> BookHebrew
pub fn book_hebrew_from_fixed(date: RataDie) -> BookHebrew
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2352
Trait Implementations§
Source§impl Clone for BookHebrew
impl Clone for BookHebrew
Source§fn clone(&self) -> BookHebrew
fn clone(&self) -> BookHebrew
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more