Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
APEX中是否有朱利安日期功能,
例如今天 [May 28 2013] 的朱利安日期为 2456442
谢谢
这是答案:
public static Integer getJulianDate(integer I,integer J,integer K){ // I= YEAR // J= MONTH // K= DAY return ( K-32075+1461*(I+4800+(J-14)/12)/4+367*(J-2-(J-14)/12*12) /12-3*((I+4900+(J-14)/12)/100)/4 ); }
...