Reference
Julian dates (and the julian package's functions), calendars, time scales, sidereal time and Mars time
import { … } from "@johnmorrisdotca/wakusei-planets/time";
Exports
| Name | Kind | What it is |
|---|---|---|
B1950_JD | constant | The Julian date of the Besselian epoch B1950.0, 1950 January 0.923 (Meeus). |
Calendar | type | Which calendar: gregorian and julian are used for every year (the proleptic calendars), and auto follows history: the Julian calendar to 1582-10-04 and the Gregorian from 1582-10-15. |
CivilTime | type | A date and time of day. |
convertTimeScale | function | A moment on one time scale as the same moment on another, in milliseconds since 1970 read on the target scale's own clock. |
coordinatedMarsTime | function | Coordinated Mars Time: the mean solar time on Mars's prime meridian, in hours from 0 up to 24 (a Martian hour is 1/24 of a sol). |
dayOfWeek | function | The day of the week of a moment in UTC: 0 Sunday to 6 Saturday. |
dayOfYear | function | The day of the year of a moment in UTC: 1 on 1 January. |
daysInMonth | function | The number of days in a month; October 1582 has 21 in the auto calendar, the ten days of the switch being left out. |
deltaT | function | Delta T, terrestrial time minus universal time (UT1), in seconds. |
equationOfTheEquinoxes | function | The equation of the equinoxes in degrees: the nutation in longitude times the cosine of the obliquity, what apparent sidereal time has over mean (about 1 second of time at most). |
fromCalendar | function | A date and time of day in UTC as a moment, in milliseconds since 1970. |
fromJulianDate | function | The time, in milliseconds since 1970, of a Julian date. |
fromJulianDayAndMilliseconds | function | A time from a Julian day and the milliseconds into it, with no digit lost: fromJulianDayAndMilliseconds(toJulianDay(t), toMillisecondsInJulianDay(t)) is t. |
greenwichApparentSiderealTime | function | The Greenwich apparent sidereal time in degrees, 0 to 360: the mean time with the equation of the equinoxes added, which is what the hour angle of a body is measured against. |
greenwichMeanSiderealTime | function | The Greenwich mean sidereal time in degrees, 0 to 360 (divide by 15 for hours). |
isLeapYear | function | Whether a year is a leap year. |
J2000_JD | constant | The Julian date of J2000.0, 2000-01-01 12:00 TT: the epoch of the planets' theories. |
J2000_MS | constant | J2000.0, 2000-01-01 12:00, as milliseconds since 1970 counted on a clock that reads TT: a terrestrial time is this far from it. |
julian | function | A time as a string of its Julian date with six decimals, as the julian package gives it (a tenth of a second). |
julianCenturies | function | Julian centuries (36,525 days) from J2000.0: the time argument of most theories. |
julianMillennia | function | Julian millennia (365,250 days) from J2000.0, in terrestrial time unless scale says UTC: the time argument of the VSOP87 series. |
localSiderealTime | function | The local sidereal time in degrees, 0 to 360, at a longitude east of Greenwich (west negative): the right ascension on the meridian. |
marsLocalMeanSolarTime | function | The local mean solar time on Mars at a longitude east of its prime meridian, in hours from 0 up to 24. |
marsSolDate | function | The Mars Sol Date: the count of Martian days, as the Julian date counts Earth's. |
modifiedJulianDate | function | The modified Julian date: the Julian date less 2,400,000.5, so a day starts at midnight and the numbers are shorter. |
taiMinusUtc | function | TAI minus UTC in seconds: the leap seconds from 1972 (10 then, 37 since 2017), and before 1972 delta T less 32.184, which is how far the atomic scale would have been from the Earth's turn. |
tdbMinusTt | function | TDB minus TT in seconds: a term that follows the Earth round the Sun and is never more than 1.7 milliseconds (Meeus's two terms, 0.001657 sin g and 0.000014 sin 2g, good to about 30 microseconds). |
TimeScale | type | A time scale: utc (the clock), ut1 (the Earth's turn, within 0.9 s of UTC), tai (atomic time), gps (TAI less 19 s), tt (terrestrial time, TAI plus 32.184 s) and tdb (barycentric dynamical time, TT plus a few milliseconds that follow the year). |
toCalendar | function | A moment as a date and time of day in UTC, in the Gregorian or the Julian calendar. |
toDate | function | The Date of a Julian date (a number, or the string julian gives), rounded to the millisecond. |
toJulianDate | function | A time as a Julian date: the days since noon on 1 January 4713 BC (Julian calendar), as a number. |
toJulianDay | function | The whole Julian day of a time. |
toMillisecondsInJulianDay | function | The milliseconds since noon, the start of the Julian day, that a time is into it. |
toTerrestrialTime | function | A moment in UTC as the same moment in terrestrial time, on the same scale of milliseconds since 1970. |
ttMinusUtc | function | Terrestrial time minus the clock's time, in seconds, at a moment given in UTC: 69.184 from the last leap second in 2017 on (until another is added), exact from 1972, and delta T before. |
UNIX_EPOCH_JULIAN_DATE | constant | The Julian date of the Unix epoch, 1970-01-01T00:00:00Z (UTC). |
When | type | A moment: a Date or a number of milliseconds since 1970 (UTC, as JavaScript counts). |