I'm programming a Tool which allows you to convert a given Numbers (Dec, Bin, Hex) in a specific Date Format (Unix Time, HFS, Fat-Time,...) into an human readable date-string.
I have a problem with Windows OLE-Date, which represents the Date and Time in an double value. Now I get different output in Windows and Unix. It is only a second difference in the Outputdate, but I want to generate the same output on Windows and Unix platforms.
I'm using long double
to store the value. I know that Visual Studio C++ compiler and gcc use different precisions for long double
. Is there an alternative which uses the same precision on both platforms?