JDE的Julian Date格式的确切定义是什么? [英] What is the precise definition of JDE's Julian Date format?

查看:1374
本文介绍了JDE的Julian Date格式的确切定义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写代码,将其从公历日期转换为JDE( JDEdwards )Julian date。



注意:一个 JDE 儒略日期与术语朱利安日期



至我可以从谷歌工作,JDE朱利安日期的定义是:

  1000 *(year-1900)+ dayofyear 

哪个年份是4位数的年份(例如2009年),而1月1日的dayofyear是1,我们的问题是:1900年以前支持的年数是多少年?如果是,上述公式是否仍然存在,或者应该是这样的:

  1000 *(1900年) -  dayofyear 

(注意减去而不是加号。)



或其他东西?



有没有人有链接到这个日期格式的官方文档?

解决方案

JDE朱利安日期由CYYDDD组成,即年度,年份,年份。



世纪为零第20例19XX和一个21世纪。 20XX。



年份是两位数。
所以101001是2001年1月1日



如你所见,这不会支持1900年前的日期。



请参阅此Oracle页面以获取简单的官方解释:关于朱利安日期格式


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 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 e.g. 19XX and one for 21st e.g. 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

这篇关于JDE的Julian Date格式的确切定义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆