data test1;
input time time12.3;
format time time12.3;
if hms(9,30,00.010) =< time =< hms(10,30,00.050); /*注意hms格式:时分秒用逗号,毫秒用圆点*/
cards;
9:30:00.009
9:30:00.010
10:30:00.049
10:30:00.050
10:30:00.051
;
run;
data test2;
input time time12.3;
format time time12.3;
if 34200.010 =< time =< 37800.050;
cards;
9:30:00.009
9:30:00.010
10:30:00.049
10:30:00.050
10:30:00.051
;
run;