Browse the docs

jd2mjd

Converts a Julian date to a modified Julian date.

Keyboard Maestro: JD2MJD

Details #

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

For example jd2mjd(2451545) is 51544.5.

Parameters #

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

Examples #

jd2mjd(2451545)
→ 51544.5
jd2mjd(value)
→ 51544.5
Sample variableValue
value2451545

Gotchas #

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

  • Anything that isn't a number is an error: jd2mjd() 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 jd2mjd() has no result for that number.