Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@robireton/delta-t

robireton24MIT1.1.0

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

astronomy, meeus, time

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