Hi,
what should I replace my clock time string (text like "00:00", "24:00" - so, no date included, mere clock time!) with? I want to
and
?
Stata doesn't calculate any difference between the two times, not even after
.
I could, of course,
But if the real time difference is 2.00 hours, I don't want 0.02 hours less (23.98 hours).
So, what may I do about it?
what should I replace my clock time string (text like "00:00", "24:00" - so, no date included, mere clock time!) with? I want to
Code:
gen double h1m01v10q001_1_e2 = clock(h1m01v10q001_1_e, "hm") gen double h1m01v11q001_1_e2 = clock(h1m01v11q001_1_e, "hm")
Code:
gen h1m01v50_1_g = (h1m01v11q001_1_e2 - h1m01v10q001_1_e2)/60000/60
Stata doesn't calculate any difference between the two times, not even after
Code:
replace h1m01v11q001_1_e = h1m01v11q001_1_e + 24*60*60000
I could, of course,
Code:
replace h1m01v11q001_1_e = "23:59" if h1m01v11q001_1_e == "24:00"
So, what may I do about it?
Comment