libtime++: Date and time calculation

◆ normbugtest()

subroutine normbugtest ( )

Definition at line 485 of file testlibtime.f.

References time_clear(), time_norm(), and time_util_warning_report_time().

Referenced by testlibtime().

485 c
486 c test bug of norm-subroutine found in 11/2017
487 c if seconds are integer multiples of -60 or hours are integer multiples
488 c of -24 or similar, the norm function does not provide the desired
489 c output
490 c
491  integer date1(7), date2(7), date3(7)
492  character string*40
493 c
494 
495  print *,'isolate'
496  call time_clear(date1)
497  date1(1)=2018
498  date1(2)=13
499  date1(3)=-23
500  date1(4)=0
501  call time_util_warning_report_time('norm bug test',date1)
502  call time_norm(date1)
503  call time_util_warning_report_time('norm bug test',date1)
504  call time_norm(date1)
505  call time_util_warning_report_time('norm bug test',date1)
506  return
subroutine time_util_warning_report_time(caller, date)
void time_clear(time_Ts *Pdate)
Definition: ctime_clear.c:33
void time_norm(time_Ts *Pdate)
Definition: ctime_norm.c:33
Here is the call graph for this function:
Here is the caller graph for this function: