in reply to Re: getting a utc value from julian date
in thread getting a utc value from julian date
(The parent post seems to be a duplicate of getting a utc value from julian date)
I, too, had suspected that Time::JulianDay would do what the OP needs, however, the ERRATA says:Time::JulianDay is not a correct implementation. There are two problems. The first problem is that Time::JulianDay only works with integers. Julian Day can be fractional to represent time within a day. If you call inverse_julian_day() with a non-integer time, it will often give you an incorrect result.
The second problem is that Julian Days start at noon rather than midnight. The julian_day() function returns results that are too large by 0.5.The function I gave in Re: getting a utc value from julian date doesn't have these limitations (but needs DateTime)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: getting a utc value from julian date
by Aldebaran (Curate) on Jul 02, 2015 at 05:36 UTC | |
|
Re^3: getting a utc value from julian date
by marinersk (Priest) on Jun 30, 2015 at 13:59 UTC |