This project is not covered by Drupal’s security advisory policy.
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. See the Almanac project for more general astronomical calculations. If anyone knows of a project which allows plugins to be written to convert dates and times in different calendars and epochs to and from timestamps, let me know.
- Maintenance status: Unknown
- Development status: Unknown
- Module categories: Event, Location
- Reported installs: 1 site currently reports using this module. View usage statistics.
- Downloads: 3,232
- Last modified: 27 November 2014
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.