concept numerical value in category fortran
appears as: numerical value, numerical values

This is an excerpt from Manning's book Modern Fortran: Building efficient parallel applications.
Now that we have the code to cast the
datetimeinstances as numerical values, it’s easy to take the difference of the two asdays_diff = ndays1 - ndays2. However, now we have the opposite problem: we need to castdays_diffas atimedeltainstance. Recall that to create atimedeltainstance, we need integer values of days, hours, minutes, and seconds. The following snippet from the code casts a number of days into atimedeltainstance: