Ticket #1316 (new defect)

SVN Diffs for #1316

 

Opened 8 years ago

Sunset and Sunrise

Reported by: armand.bendanan(at)sofrelog.com Assigned to: srl
Priority: trivial Milestone: UNSCH
Component: time_calc Version: 1.2
Keywords: time_calc Cc:
Load: Xref:
Java Version: Operating System: linux
Project (C/J): Weeks: 0.5
Review:

Description

I am using the ICU4J components, especially the HebrewCalendar, for a personal project.

The fact is that in the Jewish tradition, the day D begin the day D - 1 when the sun is down (sunset) and finish at the day D at sunset.

A Jewish day is composed with 2 parts, called ONA (or ONOTH for the plural) : - The night ONA start the day before at sunset and finish on the morning at sunrise, - The day ONA start at sunrise and finish at sunset.

In my project, I have to distinguish from the two ONOTH and I need to compute the sunset time and the sunrise time.

In order to do that, I tried to use the CalendarAstronomer.class which is part of the ICU4J components.

Here is the problem:


The algorithm to compute the astronomic sunrise and sunset of the sun use the CENTER of the sun in order to say that the sun rise or set.

BUT, in the Jewish tradition, we say that the sun rise when the first sunbeam is visible (so before the astronomic sunrise) and we say that the sun set when the last sunbeam disappears (so after the astronomic sunset).

I am not an astronomic algorithm expert and I look at the CalendarAstronomer source code but I didn't find any thing that I understand in order to modify the source code or to put or modify some parameter in order to compute the sunset and sunrise accordingly to our tradition.

Is it possible to you or to your team to have a look at this problem, trying to find a solution for me ?

I understand that modifying the Calendar and its subclasses can be a very difficult task in order to have the day transition at sunset. At least, we can manage the transition outside of the Calendar as soon as we have a mean to compute the sunset and sunrise time accordingly to our tradition.

I am sure that a lot of Jewish people that will use this component will also appreciate this functionality.

Thanks in advance for any help and from anybody.

Attachments

Change History

12/31/69 18:24:26 changed by notes2

Helena: This should along with the Calendar update. If this can't be completed by 2.6, may be deferred to 2.8.

12/31/69 18:24:27 changed by notes

RFE target: unscheduled reasonable request; investigate enhancing CalendarAstronomer [alan]

12/31/69 18:24:28 changed by auditor

  • Wed Feb 7 17:59:47 2001 alan moved from incoming to deferred
  • Wed Feb 7 18:00:48 2001 alan changed notes
  • 07/30/02 18:14:30 schererm changed notes
  • 07/30/02 18:14:30 schererm moved from deferred to formatting
  • 07/31/02 18:57:38 schererm changed notes
  • 10/29/02 13:34:54 hshih changed notes2
  • 10/29/02 13:34:54 hshih changed notes
  • 12/26/02 17:05:39 hshih changed notes2
  • 12/26/02 17:05:39 hshih changed notes
  • 06/25/03 13:56:10 hshih changed notes2
  • 06/25/03 13:56:10 hshih changed notes
  • 02/05/04 18:05:09 srl changed notes2
  • 02/05/04 18:05:09 srl changed notes
  • 02/05/04 18:06:55 srl changed notes2
  • 02/05/04 18:06:55 srl changed notes
  • Tue Sep 27 14:12:18 2005 weiv changed notes2: (via expression '$PglTl3.5') target: "3.0" to "",
  • Wed Sep 27 18:44:40 2006 grhoten moved from formatting to time_calc
  • Tue Oct 17 17:15:56 2006 yoshito changed notes2: priority: "medium" to "zero",
  • Tue Oct 17 17:15:56 2006 yoshito changed notes

Add/Change #1316 (Sunset and Sunrise)




Anti spam check: