Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

packtimeqq 'feature'

$
0
0

I just wasted a chunk of my life due to an 'inconsistency' in packtimeqq.

if I evaluate:

call packtimeqq(i1,int2(2014),int2(3),int2(1),int2(1),int2(1),int2(1))

and

call packtimeqq(i1,int2(2014),int2(4),int2(1),int2(1),int2(1),int2(1))

I would have expected a differance of 31x24x60x60 seconds (a 31 day month)

I get a discrepancy of 3600s (1 hour). I assuming from this  that packtimeqq assumes the you are passing in data that is in the time zone of the pc you are on. I am in the UK and beween those dates there would be a 'daylight saving' shift of 1h from GMT to BST. 

In may case the date/time I am using is always in GMT(UTC) so this adjustment can lead to errors so I will need to change my code.

1] Is this the case that packtimeqq does this?

2] If so there should be a note in the help file for this routine.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>