Browse the docs

mjd2jd

Converts a modified Julian date to a Julian date.

Keyboard Maestro: MJD2JD

Details #

mjd2jd(x) takes exactly one argument, a modified Julian date, and returns a Julian date as a number with decimals. It adds 2400000.5.

For example mjd2jd(51544.5) is 2451545.

Parameters #

Takes 1 argument. {{ mjd2jd(text) }}

Examples #

mjd2jd(51544.5)
→ 2451545
mjd2jd(value)
→ 2451545
Sample variableValue
value51544.5

Gotchas #

  • Calling it with no argument or two arguments is an error: mjd2jd() takes 1 argument, got 2.

  • Anything that isn't a number is an error: mjd2jd() needs a number, got text. Numeric text such as "0.5" is accepted.

  • If the result isn't a finite number the step stops with mjd2jd() has no result for that number.