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

后端 未结 8 687
清歌不尽
清歌不尽 2020-12-03 18:02

I am writing code to convert from a Gregorian date to a JDE (J.D.Edwards) Julian date.

Note: a JDE Julian date is different from the normal usag

8条回答
  •  星月不相逢
    2020-12-03 18:11

    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.

提交回复
热议问题