Questions tagged [julian-date]

Julian day is the continuous count of days since the beginning of the Julian Period used primarily by astronomers. The Julian Date (JD) of any instant is the Julian day number for the preceding noon plus the fraction of the day since that instant. The term "Julian date" also refers to the day-of-year number (more properly, the ordinal date) in the Gregorian calendar, especially in computer programming, the military and the food industry.

Julian day is the continuous count of days since the beginning of the Julian Period used primarily by astronomers.

The Julian Day Number (JDN) is the integer assigned to a whole solar day in the Julian day count starting from noon Greenwich Mean Time, with Julian day number 0 assigned to the day starting at noon on January 1, 4713 BC, proleptic Julian calendar (November 24, 4714 BC, in the proleptic Gregorian calendar). For example, the Julian day number for January 1, 2000, was 2,451,545.

The Julian Date (JD) of any instant is the Julian day number for the preceding noon plus the fraction of the day since that instant. Julian Dates are expressed as a Julian day number with a decimal fraction added. For example, the Julian Date for 00:30:00.0 UT January 1, 2013, is 2,456,293.520833.

The term "Julian date" may also refer, outside of astronomy, to the day-of-year number (more properly, the ordinal date) in the Gregorian calendar, especially in computer programming, the military and the food industry,— or it may refer to dates in the Julian calendar. For example, if a given "Julian date" is "May 12, 1629", this means that date in the Julian calendar (which is May 22, 1629, in Gregorian calendar— the date of the Treaty of Lübeck). Outside of an astronomical or historical context, if a given "Julian date" is "40", this most likely means the fortieth day of a given Gregorian year, namely February 9. But the potential for mistaking a "Julian date" of "40" to mean an astronomical Julian Day Number (or even to mean the year 40 ad in the Julian calendar, or even to mean a duration of 40 astronomical Julian years) is justification for preferring the terms "ordinal date" or "day-of-year" instead. In contexts where a "Julian date" means simply an ordinal date, calendars of a Gregorian year with formatting for ordinal dates are often called "Julian calendars", in spite of the potential for misinterpreting this as meaning that the calendars are of years in the Julian calendar system.

The Julian Period is a chronological interval of 7980 years beginning 4713 BC. It has been used by historians since its introduction in 1583 to convert between different calendars. 2014 is year 6727 of the current Julian Period. The next Julian Period begins in the year 3268 AD.

276 questions
7
votes
4 answers

Convert a Julian Date to an Instant

I'm running into a situation where I would like to convert from a Julian date to an java.time.Instant (if that makes sense), or some Java time that can be more easily understood. My understanding of what a Julian date is comes from reading the…
mkobit
  • 43,979
  • 12
  • 156
  • 150
6
votes
6 answers

Calculating julian date in python

I'm trying to create a julian date in python and having major struggles. Is there nothing out there as simple as: jul = juliandate(year,month,day,hour,minute,second) where jul would be something like 2457152.0 (the decimal changing with the…
edub
  • 659
  • 4
  • 8
  • 19
6
votes
2 answers

Convert a Regular Date to Julian Date and vice versa in Java

I've written a simple code that converts a regular date to Julian date. Here's the code for those who need the same conversion: public int convertToJulian(String unformattedDate) { /*Unformatted Date: ddmmyyyy*/ int resultJulian =…
tanzer
  • 303
  • 1
  • 5
  • 11
5
votes
2 answers

C++: Converting Julian dates to Gregorian

I need to write a function that converts a Julian dates (Year, Day of Year, Hour of Day and Minutes) into a standard form (Year, Month, Day of Month, Hour of Day and Minutes) and express it as a string. I figure there's got to be someone who's…
wheaties
  • 35,646
  • 15
  • 94
  • 131
5
votes
1 answer

Convert julian day to day/month/year

My post was apparently unclear, so I'm trying to fix it, don't hesitate to tell me if I'm still unclear! I got a dataframe of physical variables, with a data every minute. I'd like to convert the 4 first columns into a single one: "%d/%m/%Y %H:%M"…
Doc Martin's
  • 341
  • 1
  • 3
  • 11
5
votes
1 answer

Convert Julian Date to Gregorian Date

I'm writing an application in Lua that calculates the sunset/sunrise, and to do this I had to convert the Gregorian date in to Julian days initially and do all the complex maths and such from there. I've completed the hard maths, but now I need to…
fypfyp
  • 206
  • 4
  • 10
4
votes
7 answers

Converting JDE Julian date to Gregorian

I'm trying to convert JDE dates, and have amassed a large quantity of information and figured I'd try to do an SQL conversion function to simplify some tasks. Here's the function I came up with, which I simply call "ToGregorian" CREATE FUNCTION…
ShadowScripter
  • 7,314
  • 4
  • 36
  • 54
4
votes
1 answer

Why do calendar conversion libraries revolve around Julian days?

I'm currently writing some php code to convert dates from the Gregorian Calendar to the Hebrew Calendar. Looking at the php calendar functions, I found that it has functions to convert from Gregorian to Julian days and Julian days to Hebrew.…
4
votes
2 answers

Convert Julian Timestamp to Regular Time in UNIX

I need to convert Julian timestamp to Regular timestamp in UNIX using Bash. On Tandem OS, conversion is pretty straightforward - Example: 212186319010244541 $OLSAPP SYSTST 1> #interprettimestamp 212186319010244541 #interprettimestamp…
jaypal singh
  • 74,723
  • 23
  • 102
  • 147
4
votes
2 answers

Whether it is correct to take 01/01/0001 date as Monday?

I am writing a program to display the Day for the given date. (E.g. Thursday for 1/1/1970.) While attempting that I have some problems. This is my program. /*Concept: The noOfDays variable will count the no of days since 01/01/0001. And this will…
Muthu Ganapathy Nathan
  • 3,199
  • 16
  • 47
  • 77
4
votes
1 answer

convert pandas datetime64[ns] to julian day

I am confused by the number of data type conversions and seemingly very different solutions to this, none of which I can get to work. What is the best way to convert a pandas datetime column (datetime64[ns] eg 2017-01-01 03:15:00) to another column…
Michael K
  • 355
  • 3
  • 9
4
votes
9 answers

Convert Julian Date to YYYY-MM-DD

I have searched far and wide, but I can't seem find a way to convert julian to yyyy-mm-dd. Here is the format of my julian: The Julian format consists of the year, the first two digits, and the day within the year, the last three digits. For…
Mochael_DLite
  • 167
  • 2
  • 5
  • 14
4
votes
4 answers

How to convert these julian dates to oracle date format?

Below is a sample set of data that is supposed to be dates. I am not sure what kind of format it should be but I was told they are julian dates. DATE 92017 92320 99002 99003 112010 112011 112012 112013 Can…
JohnD
  • 353
  • 4
  • 13
  • 26
3
votes
1 answer

Convert Date DD/MM/YYYY to 7 Digit Julian Date in Perl

I have not used Julian date before and have no experience with it. I do not know how the 7-Digit needs to be converted or if there is a library that does it. I require help with 10/10/2020 to be converted to 2459133 in Perl.
3
votes
1 answer

VB6 Julian Date String to Date Object

Is there a function in Visual Basic 6 that can be used to convert a julian date string (99001-1st of Jan 1999) to a Date object? I have tried using CDate() but the results are not as expected. THanks.
Koekiebox
  • 5,793
  • 14
  • 53
  • 88
1
2
3
18 19