@robireton/delta-t

ES6 module to compute estimates of ΔT — the difference between local/civil time and uniform/dynamical time

Usage no npm install needed!

<script type="module">
  import robiretonDeltaT from 'https://cdn.skypack.dev/@robireton/delta-t';
</script>

README

delta-t

JavaScript Style Guide current version install size

ES6 module to compute estimates of ΔT — the difference between local/civil time and uniform/dynamical time — using algorithms from NASA - Polynomial Expressions for Delta T. Also see Chapter 9, “Dynamical Time and Universal Time,” of Astronomical Algorithms by Jean Meeus.

Syntax

computeΔT( year, month )

parameters

year: the year as a number

month: the number of the month (January = 1, February = 2, etc.)

returns

value of ΔT in seconds

example

import computeΔT from '@robireton/delta-t'

computeΔT(1971, 10)
// => 42