What is the precise definition of JDE's Julian Date format?

I am writing code to convert from a Gregorian date to a JDE (JDEdwards) Julian date.

Note: a JDE Julian date is different from the normal usage of the term Julian date.

As far as I can work out from Googling, the definition of a JDE Julian date is:

1000*(year-1900) + dayofyear

where year is the 4-digit year (eg 2009), and dayofyear is 1 for 1st January, and counts up all year to either 365 or 366 for 31st December (depending whether this is a leap year).

My question is this: are years before 1900 supported? If so, does the above formula still hold, or should it be this:

1000*(year-1900) - dayofyear

(note minus instead of plus.)

or something else?

Does anyone have a link to the official documentation for this date format?


The JDE Julian date consists of CYYDDD which is Century, Year, Day of year.

Century is zero for 20th eg 19XX and one for 21st eg 20XX.

The year is two digits. So 101001 is 1 January 2001

As you can see this will not support dates before 1900.

See this Oracle page for a simple and official explanation: About the Julian Date Format


The "JDE Julian Date Converter" does return a negative value for:

1809/07/23 : -90635

As opposed to the classical Julian Date:

The Julian date for CE  1809 July 23 00:00:00.0 UT is
JD 2381986.50000

Here is a example of JD EDWARDS (AS/400 software) Julian Date, but that is not an "official" documentation and it does not seems to support dates before 1900...

Note: this "ACC: How to Convert Julian Days to Dates in Access and Back" does not support date before 1900 either... as it speaks about an "informal" Julian day, commonly used by government agencies and contractors .

The informal Julian day format used in this article is the ordinal day of a year (for example, Julian day 032 represents February 1st, or the 32nd day of the year).
Variations on informal Julian day formats include using a preceding two-digit year (for example 96032 for 2/1/96) and separating the year with a dash (for example 96-032).
Another, less popular, Julian day format uses a one digit year (for example 6-032). These additional formats do not uniquely identify the century or decade. You should carefully consider the consequences when using these formats; for example, the Julian day 00061 can be interpreted as 3/1/2000 or 3/2/1900.


Update : Sorry, JDE is probably something else. But for reference:

The JDE I know is different. From page 59 in the book "Astronomical algorithms" (Jean Meeus, ISBN 0-943396-35-2):

"If the JD corresponds to an instant measured in the scale of Dynamical Time (or Ephemeris Time), the expression Julian Ephemeris Day (JDE) is generally used. (Not JED as
it is sometimes written. The 'E' is a sort of index appended to 'JD')"

JD and JDE (for the same point in time) are close in value as the difference UT and ET is on the order of minutes. Eg ET-UT was 56.86 seconds in 1990 and -2.72 seconds in 1900.

There is also MJD (Modified Julian Day):

MJD = JD - 2400000.5

Zero point for MJD is 1858-11-17, 0h UT.


Note that JD as Julian date is a misnomer. It is Julian day . The JD has nothing to do with the Julian calendar. (This is in disagreement with the Wikipedia article, this is from the author of the book mentioned above, Jean Meeus - a Belgian astronomer specializing in celestial mechanics.)

链接地址: http://www.djcxy.com/p/18532.html

上一篇: 日期数学在与.NET Ticks相关的Oracle中

下一篇: JDE Julian Date格式的精确定义是什么?