# HG changeset patch # User Jay Gindin # Date 1440555339 25200 # Tue Aug 25 19:15:39 2015 -0700 # Node ID 088fa27a966259cc8f4d55859137c0b409c3d9c7 # Parent b83751446f41afa10716e47cc16e50643bfef632 Adding two Zmanim for Plag HaMincha already supported by KosherJava, and another based on the user request. Z-93 plag hamincha zman that calculates from alot 16.1 and tzeis 8.5 degrees diff --git a/ZmanLib/src/main/java/com/gindin/zmanlib/zman/PlagHaMincha.java b/ZmanLib/src/main/java/com/gindin/zmanlib/zman/PlagHaMincha.java --- a/ZmanLib/src/main/java/com/gindin/zmanlib/zman/PlagHaMincha.java +++ b/ZmanLib/src/main/java/com/gindin/zmanlib/zman/PlagHaMincha.java @@ -157,6 +157,31 @@ } ); + zmanim.add( + new Zman( "16.1 deg - 7.083 deg ", "Based on the day starting at alot 16.1 degrees and ending at tzait 7.083 degrees.", Zmanim.Type.PlagHaMincha ) { + @Override protected Calendar calculate() { + return toCalendar( zmanimCalculator, zmanimCalculator.getPlagAlos16Point1ToTzaisGeonim7Point083Degrees() ); + } + } + ); + + zmanim.add( + new Zman( "16.1 deg - 8.5 deg ", "Based on the day starting at alot 16.1 degrees and ending at tzait 8.5 degrees.", Zmanim.Type.PlagHaMincha ) { + @Override protected Calendar calculate() { + return toCalendar( zmanimCalculator, zmanimCalculator.getPlagHamincha( zmanimCalculator.getAlos16Point1Degrees(), zmanimCalculator.getTzaisGeonim8Point5Degrees() ) ); + } + } + ); + + zmanim.add( + new Zman( "16.1 deg - Sunset", "Based on the day starting at alot 16.1 degrees and ending at sunset.", Zmanim.Type.PlagHaMincha ) { + @Override protected Calendar calculate() { + return toCalendar( zmanimCalculator, zmanimCalculator.getPlagAlosToSunset() ); + } + } + ); + + return zmanim; }