Hi,
I have string (type str8 and format %9s) variable nammed pickup_time
wich has this format ;
1:12:00
5:34:00
and so on ..
I am trying to put that in time format variable; i tried these 2 commands;
gen double pickup_hrs = clock( pickup_time , "hms")
gen pickup_hrs = clock( pickup_time , "h:m:s")
the command works but nothing shows up, i keet getting "179,759 missing values generated"
There's no date, only the time, i could also remove the last part xx:xx:00 since it's always zero (no seconds)
What is my error here?
Thank you
I have string (type str8 and format %9s) variable nammed pickup_time
wich has this format ;
1:12:00
5:34:00
and so on ..
I am trying to put that in time format variable; i tried these 2 commands;
gen double pickup_hrs = clock( pickup_time , "hms")
gen pickup_hrs = clock( pickup_time , "h:m:s")
the command works but nothing shows up, i keet getting "179,759 missing values generated"
There's no date, only the time, i could also remove the last part xx:xx:00 since it's always zero (no seconds)
What is my error here?
Thank you
Comment