Browse the docs

jd2time

Converts a Julian date to unix time.

Keyboard Maestro: JD2TIME

Details #

jd2time(x) takes exactly one argument, a Julian date, and returns unix time as a number with decimals.

Unix time is in seconds and independent of time zone. For example jd2time(2451545) is 946728000.

Parameters #

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

Examples #

jd2time(2451545)
→ 946728000
jd2time(value)
→ 946728000
Sample variableValue
value2451545

Gotchas #

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

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