HP Prime Forum

Full Version: Julian Date function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This HP Prime function computes the Julian Date from a user-provided calendar month, day and year.

The function will report October 5, 1582 to October 14, 1582 as an invalid calendar date via a MSGBOX and return.

Please provide all digits of the calendar year.

The calendar day argument can include a "fractional" part. For example day = 5.32784.

The syntax of this function is as follows;

EXPORT JULIAN(month, day, year)

// Julian date

// input

// month = calendar month [1 - 12]
// day = calendar day [1 - 31]
// year = calendar year [yyyy]

// output

// julian date

// special notes

// (1) calendar year must include all digits

// (2) calendar day may include fractional part

// (3) will report October 5, 1582 to October 14, 1582
// as invalid calendar date and return

////////////////////////////////////////////
Reference URL's