time2jd
Converts unix time to a Julian date.
Keyboard Maestro: TIME2JD
Details #
time2jd(x) takes exactly one argument, unix time, and returns a Julian date as a number with decimals.
Unix time is in seconds and independent of time zone. For example time2jd(946728000) is 2451545.
Parameters #
Takes 1 argument.
{{ time2jd(text) }}
Examples #
time2jd(946728000)→
2451545time2jd(value)→
2451545| Sample variable | Value |
|---|---|
value | 946728000 |
Gotchas #
Calling it with no argument or two arguments is an error:
time2jd() takes 1 argument, got 2.Anything that isn't a number is an error:
time2jd() 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
time2jd() has no result for that number.