HP Forums
converting between calendar dates and Julian days - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: converting between calendar dates and Julian days (/thread-19297.html)



converting between calendar dates and Julian days - cdeaglejr - 12-14-2022 05:23 PM

This HP PPL program can be used to convert between calendar dates and Julian days. With this software a UTC calendar date and time can be converted to the corresponding Julian days on the UTC (universal coordinated time; subroutine julian) , TDB (barycentric dynamical time; subroutine utc2tdb) and TDT (terrestrial dynamical time; subroutine utc2tdt) time systems. A TDB Julian day can be converted to a UTC calendar date and time using the tdb2utc subroutine.

The software and brief documentation for this program can be downloaded from

https://www.dropbox.com/s/khanxo2yu9elulo/demo_dates.zip?dl=0


RE: converting between calendar dates and Julian days - cdeaglejr - 02-18-2023 10:10 AM

Updated February 18, 2023

Bug fix. Variable jdsaved needs to be global.


RE: converting between calendar dates and Julian days - mchris - 03-30-2023 05:26 PM

julian to date function

DATEADD(1582.1015,J-2299161)
Parameters: J (julian date number)

date to julian function

DDAYS(1582.1015,D)+2299161
Parameters: D (Date)

Date format: YYYY.MMDD