Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

KosherJava Zmanim API

The Zmanim library is an API for a specialized calendar that can calculate different astronomical times including sunrise and sunset and Jewish zmanim or religious times for prayers and other Jewish religious duties.

These classes extend GregorianCalendar and can therefore use the standard Calendar functionality to change dates etc. For non religious astronomical / solar calculations use the AstronomicalCalendar.

The ZmanimCalendar contains the most common zmanim or religious time calculations. For a much more extensive list of zmanim use the ComplexZmanimCalendar. This class contains the main functionality of the Zmanim library.

For a basic set of instructions on the use of the API, see How to Use the Zmanim API, zmanim code samples and the KosherJava FAQ. See the KosherJava Zmanim site for additional information.

Get Started

To add KosherJava as a dependency to your project, add the following dependency:


Add the following to your pom.xml file:



Add the following to your build.gradle file:

implementation group: 'com.kosherjava', name: 'zmanim', version: '2.4.0'


The library is released under the LGPL 2.1 license.

Ports to Other Languages

The KosherJava Zmanim API has been ported to:

Web Api

There is a web api that returns json or xml and is based on the .NET port. It is available at

Source code for the web api if you would like to self host is at

ZmanCode Desktop App

The .NET port was used to create a desktop app that is available at


While I did my best to get accurate results, please double check before relying on these zmanim for halacha lemaaseh.

GitHub release (latest SemVer) GitHub GitHub last commit CodeQL Run unit tests Snyk Vulnerabilities for GitHub Repo