Skip to content
Snippets Groups Projects
Commit b97a0574 authored by Florian Prill's avatar Florian Prill
Browse files

[divide_timespans] patched divide... interface in examples.

parent 76597e8e
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ PROGRAM example ...@@ -90,7 +90,7 @@ PROGRAM example
! division ! division
td1 = t_timedelta("PT23H42M") td1 = t_timedelta("PT23H42M")
dqts = td1%divideInSecondsBy(td) dqts = td1%divideInSecondsBy(td,dt)
WRITE (0,*) td1%toString(), " / ", td%toString(), " = ", dqts%quotient, " plus stuff" WRITE (0,*) td1%toString(), " / ", td%toString(), " = ", dqts%quotient, " plus stuff"
! toSeconds, toMilliSeconds ! toSeconds, toMilliSeconds
......
...@@ -72,7 +72,7 @@ program tas ...@@ -72,7 +72,7 @@ program tas
call timedeltatostring(tdivisor, ctd) call timedeltatostring(tdivisor, ctd)
print *, ctd print *, ctd
call divideTimeDeltaInSeconds(tdividend, tdivisor, tq) CALL divideTimeDeltaInSeconds(tdividend, tdivisor, dt1, tq)
print *, tq print *, tq
...@@ -171,11 +171,11 @@ contains ...@@ -171,11 +171,11 @@ contains
tddiff => newtimedelta('PT0S') tddiff => newtimedelta('PT0S')
tddiff = mtime_current - mtime_begin tddiff = mtime_current - mtime_begin
call dividetimedeltainseconds(tddiff, vlsec, tq)
step = tq%quotient
mtime_step => newDatetime("0000-01-01T00:00:00.000"); mtime_step => newDatetime("0000-01-01T00:00:00.000");
CALL dividetimedeltainseconds(tddiff, vlsec, mtime_step, tq)
step = tq%quotient
if (step >= 0) then if (step >= 0) then
mtime_step = mtime_begin + step * vlsec mtime_step = mtime_begin + step * vlsec
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment