HI All:
I am unable to replicate a variable that I was able to previously generate. I am trying to finding the difference between time expressed in minutes using the command:
generate onset_hospitarrival = Clockdiff(hosp_datetime , str_datetime, "minute")
I wonder if it is a formatting issue because I don't see the below values on my screen but I tried %tC, %tc, and %td with no success. Thanks in advance!
I am unable to replicate a variable that I was able to previously generate. I am trying to finding the difference between time expressed in minutes using the command:
generate onset_hospitarrival = Clockdiff(hosp_datetime , str_datetime, "minute")
I wonder if it is a formatting issue because I don't see the below values on my screen but I tried %tC, %tc, and %td with no success. Thanks in advance!
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(str_datetime hosp_datetime) float onset_hospitarrival 1.8099516e+12 1.8099597e+12 -135 1.8009639e+12 1.800972e+12 -135 1.8008136e+12 1.8008148e+12 -20 1.7996175e+12 1.7996196e+12 -35 1.7987937e+12 1.7987952e+12 -25 1863141360000 1863145440000 -68 1.5904071e+12 1.5904134e+12 -105 1.608462e+12 1608469740000 -129 1.615239e+12 1.6152498e+12 -180 1.6184745e+12 1.6184802e+12 -95 end format %tc str_datetime format %tc hosp_datetime format %tc onset_hospitarrival
Comment