Hi
I am a beginner at date and time variables in Stata. I understand the principles of date and time variables in Stata but have run into a problem to convert a really simple time variable to minutes. The time variable is a string variable representing the difference between two time points (time of treatment - time of symptom) and include only information about hours and minutes like this example below:
time_dif
00:43
07:28
13:24
04:45
I have read a lot of good instructions to handle time and date variables in Stata but not for a situation with a simple time variable representing a time difference between two time points when no information is available regarding the two different time points (and the date). I suspect that there are a simple solution for this problem but I would really appreciate if someone could give me some advice.
I am a beginner at date and time variables in Stata. I understand the principles of date and time variables in Stata but have run into a problem to convert a really simple time variable to minutes. The time variable is a string variable representing the difference between two time points (time of treatment - time of symptom) and include only information about hours and minutes like this example below:
time_dif
00:43
07:28
13:24
04:45
I have read a lot of good instructions to handle time and date variables in Stata but not for a situation with a simple time variable representing a time difference between two time points when no information is available regarding the two different time points (and the date). I suspect that there are a simple solution for this problem but I would really appreciate if someone could give me some advice.
Comment