Skip to content

Commit

Permalink
Add milliseconds for time conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Jan 2, 2024
1 parent a0177c6 commit 638f5ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fortime.f90
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ pure function to_seconds(values) result(seconds)
seconds = real(values(3), rk) * 24.0_rk * 60.0_rk * 60.0_rk + &
real(values(5), rk) * 60.0_rk * 60.0_rk + &
real(values(6), rk) * 60.0_rk + &
real(values(7), rk)
real(values(7), rk) + &
real(values(8), rk) / 1000.0_rk

end function to_seconds
!===============================================================================
Expand Down

0 comments on commit 638f5ca

Please sign in to comment.