Michael G Schwern wrote:
Hi, I need a quick VMS test for the new code to detect the range of time_t.

If someone would please compile and run this little program on VMS and let me
know the result that would be helpful.  Thanks.

http://code.google.com/p/y2038/source/browse/trunk/bin/check_max.c

Default:

EAGLE> run time_t_test
          gmtime max 4294967295
          gmtime min 0
       localtime max 4294967295
       localtime min 0

EAGLE> CC time_t_test.c/define=__SIGNED_INT_TIME_T
EAGLE> link time_t_test
EAGLE> run time_t_test
          gmtime max 2147483647
          gmtime min 0
       localtime max 2147483647
       localtime min 0

VMS keeps time internally as a 64 bit signed integer all platforms, usually in local time. The base time is November 17, 1958.

-John
[EMAIL PROTECTED]
Personal Opinion Only


Reply via email to