diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
| commit | 82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch) | |
| tree | 1a1f782d3e576b758be0bc61171574a7cd8f2376 /lib/jt9_input_validation.f90 | |
| parent | 061658210acb6425517733ea012dda803a7f72a1 (diff) | |
| parent | 61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff) | |
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
Diffstat (limited to 'lib/jt9_input_validation.f90')
| -rw-r--r-- | lib/jt9_input_validation.f90 | 9 |
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 |
