Skip to main content Accessibility help
×
Hostname: page-component-78c5997874-v9fdk Total loading time: 0 Render date: 2024-11-09T22:39:09.960Z Has data issue: false hasContentIssue false

CALDAY: Julian day number since 1900 January 0.5 to calendar date

Published online by Cambridge University Press:  17 February 2010

Peter Duffett-Smith
Affiliation:
Downing College, Cambridge
Get access

Summary

The result of an astronomical calculation is sometimes an instant of time, expressed as a number of days since a fundamental epoch. In our convention, that epoch is 1900 January 0.5, and the number of days elapsed since then is represented by the real variable DJ. For example, we may have calculated the time of the next lunar eclipse as DJ = 30 815.69, but unless we are familiar with the interpretation of such numbers, the result will not mean very much to us. We need a conversion routine to convert a Julian day number into a calendar date, the inverse function of JULDAY.

Subroutine CALDAY performs this function. It converts DJ, the number of Julian days (and fraction of a day) elapsed since 1900 January 0.5, into the calendar date represented by DY, the day of the month including the fraction of the day, MN, the month number, and YR, the year number. The fraction of the day is also returned by FD. Thus DJ = 30815.69 gives DY = 15.19, MN = 5, YR = 1984 and FD = 0.19, from which we conclude that the lunar eclipse was in progress on 1984 15th May at 4 : 33 UT (Universal Time). The integer part of the day number is returned in the variable ID, and a string representation of the entire date in the string variable DT$.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1990

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×