summaryrefslogtreecommitdiff
path: root/lib/jt9_input_validation.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
commit76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch)
treefe0c394439fdc167d1970372e8998874090854dd /lib/jt9_input_validation.f90
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg' with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
Diffstat (limited to 'lib/jt9_input_validation.f90')
-rw-r--r--lib/jt9_input_validation.f909
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/jt9_input_validation.f90 b/lib/jt9_input_validation.f90
index 333fb30b..bb59bd6f 100644
--- a/lib/jt9_input_validation.f90
+++ b/lib/jt9_input_validation.f90
@@ -102,14 +102,16 @@ contains
is_real_token = i > length
end function is_real_token
- subroutine parse_wav_filename_nutc(filename, nutc)
+ subroutine parse_wav_filename_nutc(filename, nutc, includes_seconds)
character(len=*), intent(in) :: filename
integer, intent(out) :: nutc
+ logical, optional, intent(out) :: includes_seconds
integer :: dot, ios, length
character(len=:), allocatable :: stem
nutc = 0
+ if (present(includes_seconds)) includes_seconds = .false.
length = len_trim(filename)
if (length == 0) return
@@ -121,7 +123,10 @@ contains
if (len(stem) >= 6) then
if (all_digits(stem(len(stem) - 5:))) then
read(stem(len(stem) - 5:), *, iostat=ios) nutc
- if (ios == 0) return
+ if (ios == 0) then
+ if (present(includes_seconds)) includes_seconds = .true.
+ return
+ end if
end if
end if
if (len(stem) >= 5) then