Dan Sugalski <[EMAIL PROTECTED]> wrote:

> However, note that the base date is different on Windows ...

... and depending on the compiler version and vendor. This is a snippet
from an app, which of course was written when I was younger, but this
was the code that accumulated to get a "base date" just for compilers I
used in that time:

/* convert secs from 1.1.1900 to sec from 1.1.1970 */
#if _MSC_VER == 700
#define TIME_CORR  2209104000L
#elif _MSC_VER == 800
#define TIME_CORR 8L*3600L      /*  pacific east time */
#elif __SC__
#define TIME_CORR  365L*2*86400L        /* 1.1.68 */
#else
#define TIME_CORR -3600L /* win32 msc (1000) gives secs 1.1.70 utc */
#endif

*deep* swamp,

leo

Reply via email to