Hebrew calendar software creators: can you notify this list when updating the calendar?

Hebrew calendar software creators: can you notify this list when updating the calendar?

kobi zamir kobi.zamir at gmail.com
Thu Apr 15 07:22:31 IDT 2010


> 3. Is there a way to semi automatically create the non regular dates,
> such as the postponed date of the holocaust day?  Is there a known
> authoritative sites to pick these dates from?

there are some fully automated ways :-) :
I. the command line hdate:
hdate -H 2010
will print all the holidays for the year 2010

II. a python/perl script using libhdate will generate a list of holidays:
an example of such a python script is attached in earlier post in this
discussion. here is a perl example:

# apt-get install libhdate-perl
#-------------------------------------------

use hdate;

$h = hdatec::new_Hdate();

hdatec::Hdate_set_gdate($h,1,1,2010);

$julian = hdatec::Hdate_get_julian($h);

for($i = 0; $i < 365; $i++) {
	hdatec::Hdate_set_jd($h, $julian + $i);

	$day = hdatec::Hdate_get_gday($h);
	$month = hdatec::Hdate_get_gmonth($h);
	$holyday = hdatec::Hdate_get_holyday_string($h, 1);

	if ($holyday) {
		print $day . "/" . $month . " " . $holyday . "\n";
	}
}



More information about the Linux-il mailing list