(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)
In reply to Re^2: getting a utc value from julian date
by soonix
in thread getting a utc value from julian date
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |