Julian Day

Convert a Gregorian calendar date/time to a Julian Day or vice versa.

All input dates are assumed to be in the Gregorian calendar. Even if you provide a date earlier than the first adoption of the Gregorian calendar, it is taken as is and is not assumed to be a Julian calendar date.

Calculate Julian Day

Returns the Julian Day for a given date

get
Authorizations
Path parameters
datestringRequired

The desired date/time in the Gregorian calendar.

Example: 2024-10-15T22:00:00.000Z
Responses
200Success
application/json
get
GET /julian-day/{date} HTTP/1.1
Host: api.radiantdrift.com
Accept: */*
{
  "query": {
    "name": "julian-day",
    "date": "2024-10-15T22:00:00.000Z",
    "cost": 1
  },
  "response": {
    "julianDay": 2460599.41666667
  }
}

Calculate Gregorian Date/Time

Returns the date/time for a given Julian day

get
Authorizations
Path parameters
julian-daynumberRequired

Julian day value.

Example: 2460000
Responses
200Success
application/json
get
GET /date/{julian-day} HTTP/1.1
Host: api.radiantdrift.com
Accept: */*
{
  "query": {
    "name": "date",
    "julianDay": 2460000,
    "cost": 1
  },
  "response": {
    "date": "2023-02-24T12:00:00.000Z"
  }
}

Last updated