Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

date_and_time interaction with OS

emc-nyc
Beginner
669 Views
I use and develop for Windows XP and Windows 2000.

My question (I don't think this is a bug) is how does IVF's date_and_time intrinsic interact with the OS?

The reason I as is because I have an environment variable (TZ) set to EST and date_and_time returns time of day as UTC (difference from UTC is 0); users who don't have TZ set (in my case, everybody else) gets their time in the appropriate local time zone (right now, for us, EST).

I use the the local time zone from Windows, e.g., set with the Windows "date and time properties" box.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
669 Views
It asks the OS what the local date and time is, which typically is offset from UTC (unless your local time is UTC.) Note that there is also a time zone offset value that can be returned. As far as I know, it doesn't know what to do with a TZ environment variable.
0 Kudos
Reply