<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I looked at the code that in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926753#M86840</link>
    <description>&lt;P&gt;I looked at the code that ifort uses for DATE_AND_TIME on Windows and it uses localtime to get the time and gmtime to compute the offset. That you get different results when you copy in a Cygwin DLL suggests to me that there is some older, buggy version of that DLL being found otherwise.&lt;/P&gt;
&lt;P&gt;Since the program behaves correctly in a Windows shell and also when you copy in the Cygwin DLL, I would say this is a Cygwin issue.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2013 16:35:54 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2013-01-29T16:35:54Z</dc:date>
    <item>
      <title>[closed] date_and_time incorrect in cygwin</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926749#M86836</link>
      <description>&lt;P&gt;I wrote a FORTRAN program using the date_and_time function. The source follows below. The date_and_time function returns the wrong time in the cygwin environment: I am not in UTC, so czone should be +0100. However, in the windows cmd environment, the results are correct. The question is now: Why does the date_and_time function not work properly in the cygwin environment, when compiled with the ifort compiler, whereas date() and time() do? Do I miss setting some environment variables? Should I use some compiler options? I have posted this question also in the Cygwin mailing list, but so far, I still have no clue about what may be wrong.&lt;BR /&gt; &lt;BR /&gt;In the following output, the lines "ctime:..." to "milliseconds..." are based on time_and_date. The line 15:54:49 is the correct time obtained by the time function, and the line 23-JAN-13 is the correct date obtained by the date function.&lt;/P&gt;
&lt;P&gt;[plain]&lt;BR /&gt;ctime: 20130123 &lt;BR /&gt;cdate: 145449.947 &lt;BR /&gt;czone: -0000 &lt;BR /&gt;@ 2013-01-23 14:54:49.947 &lt;BR /&gt;&amp;nbsp; year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013 &lt;BR /&gt;&amp;nbsp; month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 &lt;BR /&gt;&amp;nbsp; day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23 &lt;BR /&gt;&amp;nbsp; diff wrt UTC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; minutes &lt;BR /&gt;&amp;nbsp; hours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14 &lt;BR /&gt;&amp;nbsp; minutes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 54 &lt;BR /&gt;&amp;nbsp; seconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 49 &lt;BR /&gt;&amp;nbsp; milliseconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 947 &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; 15:54:49 &lt;BR /&gt;&amp;nbsp; 23-JAN-13 &lt;BR /&gt; [/plain]&lt;BR /&gt; &lt;BR /&gt;I have done some experiments to narrow down the problem: &lt;BR /&gt;* compiling with gfortran: time_gfortran.exe gives correct result in Cygwin &lt;BR /&gt;* compiling with g95: time_g95.exe gives the correct result in Cygwin &lt;BR /&gt;* compiling with ifort: time_ifort.exe gives the wrong time in Cygwin &lt;BR /&gt; &lt;BR /&gt;After copying cygwin1.dll, cyggfortran-3.dll and cyggcc_s-1.dll to the working directory, I get correct results &lt;BR /&gt;using the three executables in c:\windows\system32\cmd.exe. &lt;BR /&gt; &lt;BR /&gt;I suspect that the intel compiler does a different system call for time_and_date than for date and time. I am still baffled why the same source runs fine for gfortran and g95. Notice however that for these compilers, the _date_ and _time_ functions are not defined. Hence the preprocessor exclusion in the source. &lt;BR /&gt; &lt;BR /&gt;Regards, &lt;BR /&gt; &lt;BR /&gt;Marten Jan&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The following example comes from the documentation:&lt;BR /&gt; [plain]&lt;BR /&gt;Consider the following &lt;BR /&gt;example executed on 2000 March 28 at 11:04:14.5:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;INTEGER DATE_TIME (8)&lt;/P&gt;
&lt;P&gt;CHARACTER (LEN = 12)&lt;/P&gt;
&lt;P&gt;REAL_CLOCK (3)&lt;/P&gt;
&lt;P&gt;CALL DATE_AND_TIME (REAL_CLOCK (1), REAL_CLOCK (2), &amp;amp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REAL_CLOCK (3), DATE_TIME)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This assigns the value&amp;nbsp; "20000328" to REAL_CLOCK (1), the value "110414.500" to REAL_CLOCK (2), and the value "-0500" to REAL_CLOCK (3). The following values are assigned to DATE_TIME: &lt;BR /&gt;2000, 3, 28, -300, 11, 4, 14, and 500. &lt;BR /&gt; [/plain]&lt;BR /&gt; &lt;BR /&gt;The following is the source of my program:&lt;BR /&gt; [fortran]&lt;BR /&gt;program time_and_date &lt;BR /&gt; &lt;BR /&gt;implicit none &lt;BR /&gt; &lt;BR /&gt;character (len=8)&amp;nbsp; cdate &lt;BR /&gt;character (len=10) ctime &lt;BR /&gt;character (len=5) czone &lt;BR /&gt;integer(4) ival(8) &lt;BR /&gt;integer(4) yr,mon,day,hr,min,sec,ms &lt;BR /&gt; &lt;BR /&gt;call date_and_time(cdate,ctime,czone,ival) &lt;BR /&gt; &lt;BR /&gt;read (cdate(1:4),*) yr &lt;BR /&gt;read (cdate(5:6),*) mon &lt;BR /&gt;read (cdate(7:8),*) day &lt;BR /&gt;read (ctime(1:2),*) hr &lt;BR /&gt;read (ctime(3:4),*) min &lt;BR /&gt;read (ctime(5:6),*) sec &lt;BR /&gt;read (ctime(8:10),*) ms &lt;BR /&gt;print *,'cdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',cdate &lt;BR /&gt;print *,'ctime&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',ctime &lt;BR /&gt;print *,'czone&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',czone &lt;BR /&gt;print "('@ ',i4,'-',i2.2,'-',i2.2,' ',i2.2,':',i2.2,':',i2.2,'.',i3.3)", yr,mon,day,hr,min,sec,ms &lt;BR /&gt;print *,'year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',ival(1) &lt;BR /&gt;print *,'month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',ival(2) &lt;BR /&gt;print *,'day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',ival(3) &lt;BR /&gt;print *,'diff wrt UTC ',ival(4),' minutes' &lt;BR /&gt;print *,'hours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',ival(5) &lt;BR /&gt;print *,'minutes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',ival(6) &lt;BR /&gt;print *,'seconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ',ival(7) &lt;BR /&gt;print *,'milliseconds ',ival(8) &lt;BR /&gt;print * &lt;BR /&gt; &lt;BR /&gt;#ifdef IFORT &lt;BR /&gt;&amp;nbsp;&amp;nbsp; call time(ctime) &lt;BR /&gt;&amp;nbsp;&amp;nbsp; print *,ctime &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; call date(ctime) &lt;BR /&gt;&amp;nbsp;&amp;nbsp; print *,ctime &lt;BR /&gt;#endif &lt;BR /&gt; &lt;BR /&gt;print *,'done' &lt;BR /&gt; &lt;BR /&gt;end program &lt;BR /&gt; [/fortran]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 09:47:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926749#M86836</guid>
      <dc:creator>martenjan</dc:creator>
      <dc:date>2013-01-29T09:47:43Z</dc:date>
    </item>
    <item>
      <title>As far as I know, IFort on</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926750#M86837</link>
      <description>&lt;P&gt;As far as I know, IFort on Windows is completely Cygwin-agnostic, whereas Gfortran and G95 are quite Cygwin-dependent. The latter two compilers use the GNU C-library, which may return different values on the basis of Cygwin environmental variables such as LANG,&amp;nbsp; etc.&lt;/P&gt;
&lt;P&gt;Unless you explicitly linked an IFort-compiled object with Cygwin libraries (which appears very unlikely), the results output by a program built with IFort will deliver the same output under CMD.exe or the Cygwin shell, in total disregard of any Cygwin variable settings.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 12:46:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926750#M86837</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-01-29T12:46:42Z</dc:date>
    </item>
    <item>
      <title>Quote:mecej4 wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926751#M86838</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;mecej4 wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Unless you explicitly linked an IFort-compiled object with Cygwin libraries (which appears very unlikely), the results output by a program built with IFort will deliver the same output under CMD.exe or the Cygwin shell, in total disregard of any Cygwin variable settings.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That is what I would expect. Yet, the output is different, even when compiled using Visual Studio without any reference to cygwin. I used the following batch file to compile the source. Compiling using bash and compiling using c:\windows\system32\cmd.exe gives an executable with the same erroneous behavior under bash, but correct behavior under cmd.&lt;/P&gt;
&lt;P&gt;[plain]&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;set VS100COMNTOOLS=C:/Program Files/Microsoft Visual Studio 10.0/Common7/Tools/&lt;BR /&gt;set PATH=C:/Program Files/Intel/Composer XE 2011 SP1/bin/ia32/&lt;BR /&gt;set PATH=%PATH%;C:/Program Files/Intel/Composer XE 2011 SP1/redist/ia32/mkl/&lt;BR /&gt;set PATH=%PATH%;C:/Program Files/Common Files/Intel/Shared Libraries/redist/ia32/mpirt/&lt;BR /&gt;set PATH=%PATH%;C:/Program Files/Common Files/Intel/Shared Libraries/redist/ia32/compiler/&lt;BR /&gt;set PATH=%PATH%;C:/Program Files/Intel/MKL/10.0.1.015/ia32/bin/&lt;BR /&gt;set PATH=%PATH%;C:/Windows/&lt;BR /&gt;set PATH=%PATH%;C:/Windows/System32/&lt;BR /&gt;&lt;BR /&gt;echo %PATH%&lt;BR /&gt;&lt;BR /&gt;call "C:/Program Files/Intel/Composer XE 2011 SP1/bin/ifortvars.bat" IA32 VS2010&lt;BR /&gt;&lt;BR /&gt;ifort.exe /fpp -DIFORT /stand:f90 /Qvc10 /Qlocation,link,"C:/Program Files/Microsoft Visual Studio 10.0/VC/bin" time_and_date.f90 /exe:time_ifort.exe&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;[/plain]&lt;/P&gt;
&lt;P&gt;Maybe you can spot the problem.&lt;/P&gt;
&lt;P&gt;Thanks for the effort,&lt;/P&gt;
&lt;P&gt;Marten Jan&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 13:00:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926751#M86838</guid>
      <dc:creator>martenjan</dc:creator>
      <dc:date>2013-01-29T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Compiling and running</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926752#M86839</link>
      <description>&lt;P&gt;Compiling and running applications with ifort under a cygwin shell (typically bash, but you have several choices) is more analogous to using one of the mingw cross compilers, rather than the cygwin "native" gcc/gfortran which depend on cygwin .dll.&lt;/P&gt;
&lt;P&gt;The mingw cross compilers support 64-bit mode (on Windows X64) which cygwin native compilers do not, but their complement of library function support is relatively limited.&lt;/P&gt;
&lt;P&gt;I haven't explored the extent to which cygwin might permit you to set your system clock to UTC while giving applications a choice between UTC and local time.&amp;nbsp; Applications built for Windows native (mingw or Intel compilers) will see the system clock setting if you have set up such a mode, so they expect you to set system clock to local time.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 15:42:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926752#M86839</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-01-29T15:42:36Z</dc:date>
    </item>
    <item>
      <title>I looked at the code that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926753#M86840</link>
      <description>&lt;P&gt;I looked at the code that ifort uses for DATE_AND_TIME on Windows and it uses localtime to get the time and gmtime to compute the offset. That you get different results when you copy in a Cygwin DLL suggests to me that there is some older, buggy version of that DLL being found otherwise.&lt;/P&gt;
&lt;P&gt;Since the program behaves correctly in a Windows shell and also when you copy in the Cygwin DLL, I would say this is a Cygwin issue.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 16:35:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926753#M86840</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-01-29T16:35:54Z</dc:date>
    </item>
    <item>
      <title>I agree with the issue being</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926754#M86841</link>
      <description>&lt;P&gt;I agree with the issue being a Cygwin one. Today, I noticed that the results are correct in my finite element program. The test program given in this thread also run correctly, I even did not recompile.&lt;/P&gt;
&lt;P&gt;It is a bit unsatisfying that I still don't know the cause of the issue; I used the Cygwin Bash login terminal. I experimented on the other shells from Cygwin: the Cygwin Bash shell, the Cygwin Terminal and the Cygwin X-server, that starts an xterm. These shells have a more convenient cut ans paste behaviour. Nevertheless, I suspect that some configuration glitch has been corrected by using these shells, since also the Cygwin Bash login terminal.&lt;/P&gt;
&lt;P&gt;I consider this issue closed.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 08:37:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926754#M86841</guid>
      <dc:creator>martenjan</dc:creator>
      <dc:date>2013-03-14T08:37:46Z</dc:date>
    </item>
    <item>
      <title>I've had this same issue with</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926755#M86842</link>
      <description>&lt;P&gt;I've had this same issue with respect to Cygwin.&amp;nbsp; The following is what I find on my Win 7 system.&lt;/P&gt;
&lt;P&gt;* If I open a cmd.exe window via the Windows start menu, the variable TZ is not set.&lt;BR /&gt;* If I open a Cygwin mintty window, the variable TZ is set to America/Chicago.&lt;BR /&gt;* If I run my application which uses date_and_time in Cygwin with TZ set, I get output with unexpected dates, e.g. log_common_20130314_150750.wri. (The format is log_common_YYYYMMDD_HHMMSS.wri.&amp;nbsp; It's around 9:07 am in St. Louis.&amp;nbsp; The 1507 would seem to mean that I'm getting UTC instead of local time, sort of.&amp;nbsp; Zone is returned as +1.&amp;nbsp; Subtracting an hour does get me to 1407 UTC.)&lt;BR /&gt;* If i first execute unset TZ, then execute my app in Cygwin, I get expected dates, e.g. log_common_20130314_090738.wri.&amp;nbsp; Zone is returned as -5.&amp;nbsp; Adding 5 also gets me to 1407 UTC.&lt;/P&gt;
&lt;P&gt;So, there is an interaction between TZ and date_and_time.&amp;nbsp; Win 7 I believe still has the hardware clock set as local time instead of UTC -- unix-like systems use UTC.&amp;nbsp; This appears to mean that TZ set/not set and hardware clock is local/UTC are all factors affecting the output of date_and_time.&amp;nbsp; I believe my findings mean that TZ should be left unset under Windows but should be set on all unix-like platforms when the hardware clock is set to UTC.&amp;nbsp; Cygwin is a unix-like environment, so TZ has been set, but the hardware clock is set to localtime -- an unexpected configuration that gives unexpected results.&amp;nbsp; I don't know what Marten Jan's experience with other compilers means in relation to Intel.&amp;nbsp; Maybe Steve can comment on this?&amp;nbsp; At the least, i think this should help Marten and other Cygwin and Intel Fortran users understand what's going on.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 15:04:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926755#M86842</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2013-03-14T15:04:48Z</dc:date>
    </item>
    <item>
      <title>I'll add that unsetting TZ</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926756#M86843</link>
      <description>&lt;P&gt;I'll add that unsetting TZ within the app has no effect on date_and_time output, e.g.&lt;/P&gt;
&lt;P&gt;[fortran]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; success = SETENVQQ('TZ=""')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call date_and_time(yymmdd, hhmmsshs, zone=z)&lt;BR /&gt;[/fortran]&lt;/P&gt;
&lt;P&gt;Am I doing something wrong, or is this expected behavior?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 15:19:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926756#M86843</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2013-03-14T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Some background that might be</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926757#M86844</link>
      <description>&lt;P&gt;Some background that might be relevant - as Steve says, date_and_time calls the C library localtime.&amp;nbsp; &lt;A href="http://msdn.microsoft.com/en-au/library/bf12f0hc%28v=vs.100%29.aspx"&gt;The docs for the C library&lt;/A&gt; explain why TZ has an effect.&amp;nbsp; Simply changing the TZ environment variable may not be sufficient for the C library to recognise the change - see &lt;A href="see%20http://msdn.microsoft.com/en-us/library/90s5c885%28v=vs.100%29.aspx"&gt;_tzset&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 20:31:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926757#M86844</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2013-03-14T20:31:54Z</dc:date>
    </item>
    <item>
      <title>Since my last comment, I've</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926758#M86845</link>
      <description>&lt;P&gt;Since my last comment, I've successfully unset TZ in my application.&amp;nbsp; Unsetting TZ has to be done in a program unit other than where date_and_time is called.&amp;nbsp; So, in my code, I unset TZ in one subroutine and call date_and_time after that in another subroutine.&amp;nbsp; Previously, I was calling setenvqq incorrectly -- the correction is shown below:&lt;BR /&gt;&lt;BR /&gt;[fortran]&lt;BR /&gt;! Incorrect - the right hand side should not have "" - it should be blank.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; success = SETENVQQ('TZ=""')&lt;BR /&gt;! Correct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;success = SETENVQQ('TZ=')&lt;BR /&gt;[/fortran]&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dave&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 21:48:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/closed-date-and-time-incorrect-in-cygwin/m-p/926758#M86845</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2013-03-19T21:48:08Z</dc:date>
    </item>
  </channel>
</rss>

