What is the precise definition of JDE's Julian Date format?
问题 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 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 (e.g. 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