Struct calendrical_calculations::hebrew::BookHebrew
source · 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 moresource§impl Debug for BookHebrew
impl Debug for BookHebrew
source§impl Default for BookHebrew
impl Default for BookHebrew
source§fn default() -> BookHebrew
fn default() -> BookHebrew
source§impl Hash for BookHebrew
impl Hash for BookHebrew
source§impl Ord for BookHebrew
impl Ord for BookHebrew
source§fn cmp(&self, other: &BookHebrew) -> Ordering
fn cmp(&self, other: &BookHebrew) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BookHebrew
impl PartialEq for BookHebrew
source§fn eq(&self, other: &BookHebrew) -> bool
fn eq(&self, other: &BookHebrew) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BookHebrew
impl PartialOrd for BookHebrew
source§fn partial_cmp(&self, other: &BookHebrew) -> Option<Ordering>
fn partial_cmp(&self, other: &BookHebrew) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more