Hdate class.
#include <hdatepp.h>
Hdate ()
Hdate constructor. ~Hdate ()
Hdate destructor. void set_gdate (int d, int m, int y)
compute date structure from the Gregorian date void set_hdate (int d, int m, int y)
compute date structure from the Hebrew date void set_jd (int jd)
compute date structure from the Julian day char * get_format_date (int s)
get formated 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 month int get_parasha ()
get parash number int get_holyday ()
get holiday number int get_gday ()
get Gregorian day of the month int get_gmonth ()
get Gregorian month int get_gyear ()
get Gregorian year int get_hday ()
get Hebrew day of the month int get_hmonth ()
get Hebrew month int get_hyear ()
get Hebrew year int get_day_of_the_week ()
get the day of the week int get_size_of_year ()
get the size of the Hebrew year in days int get_new_year_day_of_the_week ()
get the day of the week of hebrew new years int get_julian ()
get the Julian day number int get_days ()
get the number of days sice Tishrey I int get_weeks ()
get the number of weeks sice Tishrey I void set_location (double in_latitude, double in_longitude, int in_tz)
set location int get_sunrise ()
sunrise time int get_sunset ()
sunset time int get_first_light ()
first light time int get_talit ()
talit time int get_first_stars ()
first stars time int get_three_stars ()
three stars time int get_sun_hour ()
sun light hour time int get_midday ()
midday hour time char * get_translator_string ()
name of translator void set_diaspora ()
set this hdate object to use diaspora holidays and dates void set_israel ()
set this hdate object to use israel holidays and dates
Hdate class.
class for Hebrew/Gregorian date conversions
Hdate constructor.
Hdate destructor.
compute date structure from the Gregorian date
Parameters:
d Day of month 1..31
m Month 1..12 , if m or d is 0 return current date.
y Year in 4 digits e.g. 2001
compute date structure from the Hebrew date
Parameters:
d Day of month 1..31
m Month 1..14 , if m or d is 0 return current date.
y Year in 4 digits e.g. 5731
compute date structure from the Julian day
Parameters:
jd the julian day number.
get formated hebrew date.
return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date.
Parameters:
s short flag.
Returns:
a static string of foramted date
get name of week day.
Parameters:
s short flag true - returns a short string: sun, false returns: sunday.
Returns:
a static string of the day of the week
get name month.
Parameters:
s short flag true - returns a short string: Mar, false returns: March.
Returns:
a static string of month name
get name hebrew month.
Parameters:
s short flag true - returns a short string.
Returns:
a static string of hebrew month name
get name hebrew holiday.
Parameters:
s short flag true - returns a short string.
Returns:
a static string of hebrew holiday name
get the hebrew holiday type.
Returns:
the holiday type (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
get name hebrew parasha.
Parameters:
s short flag true - returns a short string.
Returns:
a static string of hebrew parash name
get name hebrew year.
Returns:
a static string of hebrew year
get name hebrew hebrew day of the month
Returns:
a static string of hebrew day of the month
get parash number
Returns:
the hebrew parasha number
get holiday number
Returns:
the hebrew holiday number
get Gregorian day of the month
Returns:
the Gregorian day of the month
get Gregorian month
Returns:
the Gregorian month
get Gregorian year
Returns:
the Gregorian year
get Hebrew day of the month
Returns:
the Hebrew day of the month
get Hebrew month
Returns:
the Hebrew month
get Hebrew year
Returns:
the Hebrew year
get the day of the week
Returns:
the day of the week
get the size of the Hebrew year in days
Returns:
the size of the Hebrew year in days
get the day of the week of hebrew new years
Returns:
the day of the week of hebrew new years
get the Julian day number
Returns:
the Julian day number
get the number of days sice Tishrey I
Returns:
the the number of days sice Tishrey I
get the number of weeks sice Tishrey I
Returns:
the the number of weeks sice Tishrey I
set location
Parameters:
in_longitude longitude to use in calculations degrees, negative values are east
in_latitude latitude to use in calculations degrees, negative values are south
in_tz time zone
sunrise time
Returns:
sunrise in minutes after midnight (00:00)
sunset time
Returns:
sunset in minutes after midnight (00:00)
first light time
Returns:
first light in minutes after midnight (00:00)
talit time
Returns:
talit time in minutes after midnight (00:00)
first stars time
Returns:
first stars in minutes after midnight (00:00)
three stars time
Returns:
three stars in minutes after midnight (00:00)
sun light hour time
Returns:
sun light hour in minutes
midday hour time
Returns:
midday hour in minutes
name of translator
Returns:
a static string with name of translator, or NULL if none
set this hdate object to use diaspora holidays and dates
set this hdate object to use israel holidays and dates
Generated automatically by Doxygen for libhdate C++ language from the source code.