1 subroutine da_advance_cymdh (start_date, dh, end_date)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 character (len=10), intent(in) :: start_date ! In date (ccyymmddhh).
10 integer, intent(in) :: dh ! Period to advance (-ve for past).
11 character (len=10), intent(out) :: end_date ! Out date (ccyymmddhh).
13 integer :: ccyy, mm, dd, hh
15 read(start_date(1:10), fmt='(i4, 3i2)') ccyy, mm, dd, hh
21 call da_change_date (ccyy, mm, dd, -1)
26 call da_change_date (ccyy, mm, dd, 1)
29 write(unit=end_date(1:10), fmt='(i4.4, 3i2.2)') ccyy, mm, dd, hh
31 end subroutine da_advance_cymdh