You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the file "mod_datetime.f90".
type(datetime) function now()
...
now % tz = hour+minute*m2h
Codes should be change to
now % tz = hour+sign(minute,hour)*m2h
or
now % tz = values(4)*m2h
The text was updated successfully, but these errors were encountered:
Thanks a lot -- I believe you are correct. Can you give an example case in which the current code produces an erroneous value? I'm trying to understand it better.
For example, if you are in New York or someplace, zone=="-0530", then hour==-5 and minute==30
now % tz = hour+minute*m2h
so tz==-4.50, it is wrong!
the right answer is -5.50!
There is a bug in the file "mod_datetime.f90".
type(datetime) function now()
...
now % tz = hour+minute*m2h
Codes should be change to
now % tz = hour+sign(minute,hour)*m2h
or
now % tz = values(4)*m2h
The text was updated successfully, but these errors were encountered: