Ya Huang
2007-10-25 16:32:32 UTC
Hi there,
I want to show an elapse time as hh:mm format, but the hour part
may go over 24. For example, a='127:56:34't, I want it shown as
127:56. If I use time5., I'll get 127.
I tried to play around the picture format, but failed:
122 proc format;
123 picture mytime
124 low-high = '%0I:%0M' (datatype=time);
125 run;
126
127 data _null_;
128 a='7:56:34't;
129 put a time5. a mytime.;
130 a='127:56:34't;
131 put a time5. a mytime.;
132 run;
7:56 07:56
127 07:56
I change to '%00I:%0M', but not work either. I can't use time7., because I
don't want to see the second portion.
Any idea ?
Thanks
Ya
I want to show an elapse time as hh:mm format, but the hour part
may go over 24. For example, a='127:56:34't, I want it shown as
127:56. If I use time5., I'll get 127.
I tried to play around the picture format, but failed:
122 proc format;
123 picture mytime
124 low-high = '%0I:%0M' (datatype=time);
125 run;
126
127 data _null_;
128 a='7:56:34't;
129 put a time5. a mytime.;
130 a='127:56:34't;
131 put a time5. a mytime.;
132 run;
7:56 07:56
127 07:56
I change to '%00I:%0M', but not work either. I can't use time7., because I
don't want to see the second portion.
Any idea ?
Thanks
Ya