1.1.0 • Published 3 years ago

@robireton/delta-t v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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