Namespace: jd

og.jd

Members

static,constantog.jd.DAYS_PER_JULIAN_CENTURY

Days in julian century.
Default Value:
  • 36525

static,constantog.jd.DAYS_PER_JULIAN_YEAR

Days in julian year.
Default Value:
  • 365.25

static,constantog.jd.HOURS_PER_DAY

Hours in day.
Default Value:
  • 24

static,constantog.jd.J2000

Julian date of 2000 year. Epoch.
Default Value:
  • 2451545

static,constantog.jd.MILLISECONDS_PER_DAY

Milliseconds in day.
Default Value:
  • 86400000

static,constantog.jd.MILLISECONDS_PER_SECOND

Milliseconds in second.
Default Value:
  • 1000

static,constantog.jd.MINUTES_PER_DAY

Minutes in day.
Default Value:
  • 1440

static,constantog.jd.MINUTES_PER_HOUR

Minutes in hour.
Default Value:
  • 60

static,constantog.jd.MODIFIED_JULIAN_DATE_DIFFERENCE

Modified julian date difference.
Default Value:
  • 2400000.5

static,constantog.jd.ONE_BY_HOURS_PER_DAY

One by hours in day.

static,constantog.jd.ONE_BY_MILLISECONDS_PER_DAY

One by milliseconds in day.

static,constantog.jd.ONE_BY_MINUTES_PER_DAY

One by minutes in day.

static,constantog.jd.ONE_BY_SECONDS_PER_DAY

One by seconds in day.

static,constantog.jd.ONE_BY_SECONDS_PER_HOUR

One by seconds in hour.

static,constantog.jd.ONE_BY_SECONDS_PER_MINUTE

One by seconds in minute.

static,constantog.jd.PICOSECOND

Seconds in picosecond.
Default Value:
  • 1e-9

static,constantog.jd.SECONDS_PER_12_HOURS

Seconds in 12 hours.

static,constantog.jd.SECONDS_PER_DAY

Seconds in day.
Default Value:
  • 86400

static,constantog.jd.SECONDS_PER_HOUR

Seconds in hour.
Default Value:
  • 3600

static,constantog.jd.SECONDS_PER_MILLISECOND

Seconds in millisecond.
Default Value:
  • 0.001

static,constantog.jd.SECONDS_PER_MINUTE

Seconds in minute.
Default Value:
  • 60

Methods

staticog.jd.addDays(jd, days){number}

Adds days to the julian date.
Name Type Description
jd number Julian date.
days number Days to add.
Returns:
Type Description
number Julian date

staticog.jd.addHours(jd, hours){number}

Adds hours to the julian date.
Name Type Description
jd number Julian date.
hours number Hours to add.
Returns:
Type Description
number Julian date

staticog.jd.addMilliseconds(jd, milliseconds){number}

Adds milliseconds to the julian date.
Name Type Description
jd number Julian date.
milliseconds number Milliseconds to add.
Returns:
Type Description
number Julian date

staticog.jd.addMinutes(jd, minutes){number}

Adds minutes to the julian date.
Name Type Description
jd number Julian date.
minutes number Minutes to add.
Returns:
Type Description
number Julian date

staticog.jd.addSeconds(jd, seconds){number}

Adds seconds to the julian date.
Name Type Description
jd number Julian date.
seconds number Seconds to add.
Returns:
Type Description
number Julian date

staticog.jd.DateToTAI(date){number}

Converts javascript date to the atomic(TAI) julian date.
Name Type Description
date Date Date.
Returns:
Type Description
number TAI julian date

staticog.jd.DateToUTC(date){number}

Converts javascript date to the universal(UTC) julian date.
Name Type Description
date Date Date.
Returns:
Type Description
number UTC julian date

staticog.jd.daysToSeconds(d){number}

Returns seconds in days.
Name Type Description
d number Days.
Returns:
Type Description
number Seconds

staticog.jd.getDayNumber(year, month, day){Number}

Gets the date's julian day.
Name Type Description
year number Year.
month number Month.
day number Day.
Returns:
Type Description
Number Day number

staticog.jd.getDays(js){number}

Gets days of a julian date.
Name Type Description
js number julian date.
Returns:
Type Description
number Days

staticog.jd.getHours(js){number}

Gets hours of a julian date.
Name Type Description
js number julian date.
Returns:
Type Description
number Hours

staticog.jd.getMilliseconds(js){number}

Gets milliseconds of a julian date.
Name Type Description
js number julian date.
Returns:
Type Description
number Milliseconds

staticog.jd.getMinutes(js){number}

Gets minutes of a julian date.
Name Type Description
js number julian date.
Returns:
Type Description
number Minutes

staticog.jd.getSeconds(js){number}

Gets seconds of a julian date.
Name Type Description
js number julian date.
Returns:
Type Description
number Seconds

staticog.jd.secondsToDays(s){number}

Returns days in seconds.
Name Type Description
s number Seconds.
Returns:
Type Description
number Days

staticog.jd.T(jd){number}

Returns julian days from Epoch.
Name Type Description
jd number Julian date.
Returns:
Type Description
number Days from epoch

staticog.jd.TAItoDate(tai){Date}

Converts TAI julian date to the javascript date object.
Name Type Description
tai number TAI julian date.
Returns:
Type Description
Date JavaScript Date object

staticog.jd.TAItoUTC(tai){number}

Converts atomic julian date(TAI) to the coordinated universal(UTC) julian date.
Name Type Description
tai number TAI julian date.
Returns:
Type Description
number UTC julian date

staticog.jd.UTCtoDate(utc){Date}

Converts UTC julian date to the javascript date object.
Name Type Description
utc number UTC julian date.
Returns:
Type Description
Date JavaScript Date object

staticog.jd.UTCtoTAI(jd){number}

Converts coordinated universal(UTC) julian date to atomic(TAI) julian date.
Name Type Description
jd number UTC julian date.
Returns:
Type Description
number TAI julian date