Asterisk shabbat mode?

Asterisk shabbat mode?

geoffrey mendelson geoffreymendelson at gmail.com
Sun Jan 17 17:22:57 IST 2010


On Jan 17, 2010, at 3:58 PM, sammy ominsky wrote:

> On 17/01/2010, at 15:32, ik wrote:
>
>> But for that you need to know when is the shabat enter a specific  
>> location,
>> so you need extra program for it (even if it's pure bash), to  
>> calculate the
>> exact time it started. I think that the berkley should have the  
>> exact time
>> and date for each week for that.
>> I agree that you can execute it like so, but it requires a bit more  
>> work
>> then what you are pointing out imho.
>
> Hebcal gives me the date and time for candle lighting and havdala  
> like so:
>
> sambo at zeraim:~$ hebcal -C jerusalem -cerm 42
> 1.1.2010	Candle lighting:  4:06
> 2.1.2010	Havdalah (42 min): 5:28
> 8.1.2010	Candle lighting:  4:11
> 9.1.2010	Havdalah (42 min): 5:34
>
> (42 minutes for havdala, default is 72)
>
> etc... for the whole year.  You can also get a specific date.  I  
> haven't yet figured out how to get it to give me "this week", but  
> simple enough to parse the date out of the output.
>
> http://linux.softpedia.com/get/Utilities/Hebcal-10219.shtml



Not quite in the same context but this works for me:

	#!/usr/bin/perl

	$today=`date -d "next friday" +"%m %d %Y"`;
	#printf("%s\n",$today);
	$candles = `hebcal -c -o -Z israel -C Jerusalem $today`;
	printf("%s\n",$candles);

	$tomorrow=`date --date="next saturday"  +"%m %d %Y"`;
	#printf("%s\n",$tomorrow);
	$havdala = `hebcal -c -o -m 38 -Z israel -C Jerusalem $tomorrow`;
	printf("%s\n",$havdala);

Geoff.


-- 
geoffrey mendelson N3OWJ/4X1GM
Jerusalem Israel geoffreymendelson at gmail.com
New word I coined 12/13/09, "Sub-Wikipedia" adj, describing knowledge  
or understanding, as in he has a sub-wikipedia understanding of the  
situation. i.e possessing less facts or information than can be found  
in the Wikipedia.









More information about the Linux-il mailing list