Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Elyahu41 authored Jan 15, 2024
1 parent 81293f1 commit e1d7498
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public extension JewishCalendar {
The same goes for zmanim! If you want to create your own zmanim, it would look like this:
```Swift
public extension ComplexZmanimCalendar {

// for regular minutes (note the need to convert to milliseconds)
func getTzais45() -> Date? {
return ComplexZmanimCalendar.getTimeOffset(time: getElevationAdjustedSunset(), offset: 45 * ComplexZmanimCalendar.MINUTE_MILLIS);
}

// for degrees
func getTzais8PointSevenDegrees() -> Date? {
Expand Down

0 comments on commit e1d7498

Please sign in to comment.