hdate::Hdate(3)
π NAME π
hdate::Hdate β the Hdate class, periodt. this is the libhdate C++ language manual, section 3, and bestie she is that girl: a whole class dedicated to Hebrew/Gregorian date conversions π
β¨
β¨ SYNOPSIS β¨
#include <hdatepp.h>
π Public Member Functions π
Hdate ()β Hdate constructor πΌ~Hdate ()β Hdate destructor πvoid set_gdate (int d, int m, int y)β compute date structure from the Gregorian datevoid set_hdate (int d, int m, int y)β compute date structure from the Hebrew datevoid set_jd (int jd)β compute date structure from the Julian daychar * get_format_date (int s)β get formatted hebrew date.char * get_day_of_week_string (int s)β get name of week day.char * get_month_string (int s)β get name month.char * get_hebrew_month_string (int s)β get name hebrew month.char * get_holyday_string (int s)β get name hebrew holiday.int get_holyday_type ()β get the hebrew holiday type.char * get_parasha_string (int s)β get name hebrew parasha.char * get_hebrew_year_string ()β get name hebrew year.char * get_hebrew_day_string ()β get name hebrew hebrew day of the monthint get_parasha ()β get parash numberint get_holyday ()β get holiday numberint get_gday ()β get Gregorian day of the monthint get_gmonth ()β get Gregorian monthint get_gyear ()β get Gregorian yearint get_hday ()β get Hebrew day of the monthint get_hmonth ()β get Hebrew monthint get_hyear ()β get Hebrew yearint get_day_of_the_week ()β get the day of the weekint get_size_of_year ()β get the size of the Hebrew year in daysint get_new_year_day_of_the_week ()β get the day of the week of hebrew new yearsint get_julian ()β get the Julian day numberint get_days ()β get the number of days sice Tishrey Iint get_weeks ()β get the number of weeks sice Tishrey Ivoid set_location (double in_latitude, double in_longitude, int in_tz)β set locationint get_sunrise ()β sunrise timeint get_sunset ()β sunset timeint get_first_light ()β first light timeint get_talit ()β talit timeint get_first_stars ()β first stars timeint get_three_stars ()β three stars timeint get_sun_hour ()β sun light hour timeint get_midday ()β midday hour timechar * get_translator_string ()β name of translatorvoid set_diaspora ()β set this hdate object to use diaspora holidays and datesvoid set_israel ()β set this hdate object to use israel holidays and dates
π¦ Detailed Description π¦
Hdate class. πΈ
like, it's a class for Hebrew/Gregorian date conversions. that's the whole assignment and she ate π₯
π§ Constructor & Destructor Documentation π§
hdate::Hdate::Hdate () [inline]
Hdate constructor. your girl is born β¨
hdate::Hdate::~Hdate () [inline]
Hdate destructor. and she's gone, we hardly knew her π
π Member Function Documentation π
void hdate::Hdate::set_gdate (int d, int m, int y) [inline]
compute date structure from the Gregorian date ποΈ
Parameters:
dβ Day of month1..31mβ Month1..12, ifmordis0return current date.yβ Year in 4 digits e.g.2001
void hdate::Hdate::set_hdate (int d, int m, int y) [inline]
compute date structure from the Hebrew date β‘οΈ
Parameters:
dβ Day of month1..31mβ Month1..14, ifmordis0return current date.yβ Year in 4 digits e.g.5731
void hdate::Hdate::set_jd (int jd) [inline]
compute date structure from the Julian day
Parameters:
jdβ the julian day number.
char* hdate::Hdate::get_format_date (int s) [inline]
get formatted hebrew date. π
returns the short version (like '1 Tishrey') or the long version (like 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot') formatted date.
Parameters:
sβ short flag.
Returns:
- a static string of foramted date
char* hdate::Hdate::get_day_of_week_string (int s) [inline]
get name of week day. π
Parameters:
sβ short flag,true- returns a short string:sun,falsereturns:sunday.
Returns:
- a static string of the day of the week
char* hdate::Hdate::get_month_string (int s) [inline]
get name month.
Parameters:
sβ short flag,true- returns a short string:Mar,falsereturns:March.
Returns:
- a static string of month name
char* hdate::Hdate::get_hebrew_month_string (int s) [inline]
get name hebrew month.
Parameters:
sβ short flag,true- returns a short string.
Returns:
- a static string of hebrew month name
char* hdate::Hdate::get_holyday_string (int s) [inline]
get name hebrew holiday. π
Parameters:
sβ short flag,true- returns a short string.
Returns:
- a static string of hebrew holiday name
int hdate::Hdate::get_holyday_type () [inline]
get the hebrew holiday type.
Returns:
- the holiday type (
1- regular holyday,2- three regels,3- tzom,0- no holiday)
char* hdate::Hdate::get_parasha_string (int s) [inline]
get name hebrew parasha.
Parameters:
sβ short flag,true- returns a short string.
Returns:
- a static string of hebrew parash name
char* hdate::Hdate::get_hebrew_year_string () [inline]
get name hebrew year.
Returns:
- a static string of hebrew year
char* hdate::Hdate::get_hebrew_day_string () [inline]
get name hebrew hebrew day of the month π
Returns:
- a static string of hebrew day of the month
int hdate::Hdate::get_parasha () [inline]
get parash number
Returns:
- the hebrew parasha number
int hdate::Hdate::get_holyday () [inline]
get holiday number
Returns:
- the hebrew holiday number
int hdate::Hdate::get_gday () [inline]
get Gregorian day of the month
Returns:
- the Gregorian day of the month
int hdate::Hdate::get_gmonth () [inline]
get Gregorian month
Returns:
- the Gregorian month
int hdate::Hdate::get_gyear () [inline]
get Gregorian year
Returns:
- the Gregorian year
int hdate::Hdate::get_hday () [inline]
get Hebrew day of the month
Returns:
- the Hebrew day of the month
int hdate::Hdate::get_hmonth () [inline]
get Hebrew month
Returns:
- the Hebrew month
int hdate::Hdate::get_hyear () [inline]
get Hebrew year
Returns:
- the Hebrew year
int hdate::Hdate::get_day_of_the_week () [inline]
get the day of the week
Returns:
- the day of the week
int hdate::Hdate::get_size_of_year () [inline]
get the size of the Hebrew year in days
Returns:
- the size of the Hebrew year in days
int hdate::Hdate::get_new_year_day_of_the_week () [inline]
get the day of the week of hebrew new years ππ―
Returns:
- the day of the week of hebrew new years
int hdate::Hdate::get_julian () [inline]
get the Julian day number
Returns:
- the Julian day number
int hdate::Hdate::get_days () [inline]
get the number of days sice Tishrey I
Returns:
- the the number of days sice Tishrey I
int hdate::Hdate::get_weeks () [inline]
get the number of weeks sice Tishrey I
Returns:
- the the number of weeks sice Tishrey I
void hdate::Hdate::set_location (double in_latitude, double in_longitude, int in_tz) [inline]
set location π
Parameters:
in_longitudeβ longitude to use in calculations degrees, negative values are eastin_latitudeβ latitude to use in calculations degrees, negative values are southin_tzβ time zone
int hdate::Hdate::get_sunrise () [inline]
sunrise time π
Returns:
- sunrise in minutes after midnight (
00:00)
int hdate::Hdate::get_sunset () [inline]
sunset time π
Returns:
- sunset in minutes after midnight (
00:00)
int hdate::Hdate::get_first_light () [inline]
first light time
Returns:
- first light in minutes after midnight (
00:00)
int hdate::Hdate::get_talit () [inline]
talit time
Returns:
- talit time in minutes after midnight (
00:00)
int hdate::Hdate::get_first_stars () [inline]
first stars time β
Returns:
- first stars in minutes after midnight (
00:00)
int hdate::Hdate::get_three_stars () [inline]
three stars time β¨β¨β¨
Returns:
- three stars in minutes after midnight (
00:00)
int hdate::Hdate::get_sun_hour () [inline]
sun light hour time
Returns:
- sun light hour in minutes
int hdate::Hdate::get_midday () [inline]
midday hour time
Returns:
- midday hour in minutes
char* hdate::Hdate::get_translator_string () [inline]
name of translator π«Ά
Returns:
- a static string with name of translator, or
NULLif none
void hdate::Hdate::set_diaspora () [inline]
set this hdate object to use diaspora holidays and dates
void hdate::Hdate::set_israel () [inline]
set this hdate object to use israel holidays and dates
π Author π
Generated automatically by Doxygen for libhdate C++ language from the source code.
and that's the whole page, no cap π
this was Version 1.4, dated 6 Jan 2008, and if you ever need to look her up again she lives at hdate::Hdate(3) β bestie behavior only, mwah ππ¦π
π¦ where this page comes from
- debian bookworm: libhdate-dev 1.6.02-2.1+b3 Β· GPL-3.0-or-later
- debian trixie: libhdate-dev 1.6.02-2.1+b8 Β· GPL-3.0-or-later
- ubuntu jammy: libhdate-dev 1.6.02-2.1build1 Β· GPL-3.0-or-later
- ubuntu noble: libhdate-dev 1.6.02-2.1build5 Β· GPL-3.0-or-later
- ubuntu questing: libhdate-dev 1.6.02-2.1build6
- ubuntu resolute: libhdate-dev 1.6.02-2.1build7 Β· GPL-3.0-or-later
- ubuntu stonking: libhdate-dev 1.6.02-2.1build8 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms