Skip to content
New issue

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

negative timedelta_type #4

Open
mpagowski opened this issue Oct 12, 2018 · 4 comments
Open

negative timedelta_type #4

mpagowski opened this issue Oct 12, 2018 · 4 comments

Comments

@mpagowski
Copy link

Pls look at the code below
dt is always positive regardless of the sign. Is there a way to allow negative values?
Thanks

TYPE(timedelta_type) :: dt

PRINT *,fcstdate%isoformat()
PRINT *,aod_nnr_record(1)%obsdate%isoformat()
PRINT *,aod_nnr_record(30000)%obsdate%isoformat()

dt=aod_nnr_record(1)%obsdate-fcstdate
PRINT *,dt

dt=aod_nnr_record(30000)%obsdate-fcstdate
PRINT *,dt

2015-08-05T21:00:00Z
2015-08-05T19:31:00Z
2015-08-05T21:22:00Z
0 1 29 0 0
0 0 22 0 0

@dongli
Copy link
Owner

dongli commented Oct 13, 2018

Okay, I will check it later.

@dongli
Copy link
Owner

dongli commented Oct 19, 2018

@mpagowski Sorry for the delay! I have fixed the problem, you could give it a try.

@mpagowski
Copy link
Author

mpagowski commented Oct 19, 2018 via email

@dongli
Copy link
Owner

dongli commented Oct 21, 2018

@mpagowski I will find another time to update README.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants