Steven J. Weinberger wrote:
> 
> Flavio:
> If the RD is a value that only changes at midnight 
> (as you noted previously), then I think my order is 
> right. The way you're suggesting would change the RD 
> if it's after sunset - wouldn't it? 

This is what I have in mind:

  Heb: 5000-10-15T12:00:00   # midday
  RD:  1234567

  Heb: 5000-10-15T18:08:59   # before sunset
  RD:  1234567

  Heb: 5000-10-16T18:09:00   # after sunset, heb day++
  RD:  1234567               # same RD

  Heb: 5000-10-16T22:00:00   # later on
  RD:  1234567

  Heb: 5000-10-16T10:00:00   # next morning
  RD:  1234568

  Heb: 5000-10-17T22:00:00   # later that day
  RD:  1234568

> If you took a DT::Calendar::Hebrew with an incremented 
> RD and converted it to a DateTime, then converted that 
> DateTime to another DT::Calendar::Hebrew, wouldn't you 
> keep jumping ahead a day, b/c each time you'd increment
> RD b/c it's after sunset on the day in question?

Yes. Both heb->rd and rd->heb must use the same sunset rule, 
in order for it to work both ways.

- Flavio S. Glock

Reply via email to