Sabbath
Disclaimer: This module has not been reviewed by any religious organization. No endorsement of its use for religious purposes is implied.
The time that the sabbath begins and ends changes throughout the year because, historically, a full day began at sunset. The Sabbath module provides the sabbath start and end times for any week and any latitude, longitude, and time zone.
It provides two API functions:
sabbath_time($latitude, $longitude, $timezone = NULL, $time = NULL, $future = 'time')This returns an object containing the sabbath start and end timestamps, the time zone offset for each, and the beginning of the next week. $future can be set to 'day' or 'time' and specifies whether to show the sabbath that ends after the given time or after the day in which the time occurs.
sabbath_now($latitude, $longitude, $timezone = NULL, $time = NULL)This returns a boolean value which tells whether the given time falls within the sabbath.
The Sabbath module also provides a block for displaying the local sabbath start and end times for the current week.
Requirements: PHP 5 or above
Currently, we can only calculate sabbath sunset times. Contributions of other calculations are welcome.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.2 | 2009-Jan-26 | 43.07 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.3 | 2007-Oct-08 | 42.39 KB | Download · Release notes | Recommended for 5.x | |
