开发者

seemingly complex date time calculations

开发者 https://www.devze.com 2023-01-02 04:51 出处:网络
I have this function that should convert them from Ole to UTC8601 standard, but I don\'t understand how the integer representations of time seem to work.

I have this function that should convert them from Ole to UTC8601 standard, but I don't understand how the integer representations of time seem to work.

Can anyone give me some explanation?

the function is called: RipOf_AfxTmFromOleDate

containing statements as: nDaysAbsolute %= 146097L; Where does the value come from and how is it calculated?

where nDaysAbsolute is a long type.

This app gets values from an Oracle database and sends them to another a开发者_JS百科pplication.


In 400 years, there are 97 leap years.

146097 = 365 * 400 + 97.


Take a look at Julian Day calculations.

0

精彩评论

暂无评论...
验证码 换一张
取 消