We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In num2date in mod_datetime.f90, line 1245 has:
num2date
if(num2date % hour == 60)then
Surely that comparison should be to 24, not 60?
The text was updated successfully, but these errors were encountered:
Definitely incorrect code.
Sorry, something went wrong.
Good catch - this is in the master at wavebitscientific - maybe raise the issue there? https://github.com/wavebitscientific/datetime-fortran/blob/master/src/lib/mod_datetime.f90#L1238
Done. wavebitscientific#64
This mix of integer and real arithmetic makes me nervous too. But I think I'm right in saying 1e3 has an exact representation as a float, so I guess that helps... https://github.com/wavebitscientific/datetime-fortran/blob/master/src/lib/mod_datetime.f90#L1215-L1228
No branches or pull requests
In
num2date
in mod_datetime.f90, line 1245 has:Surely that comparison should be to 24, not 60?
The text was updated successfully, but these errors were encountered: