Hello!
I am analyzing an annual dataset on Electrical Vehicles and need to find the sum of time (hours:minutes:seconds) of a charging station used in a day (month/date/year).
The charging station can have multiple users per day, so I would like to code the dataset so that each date has one output amount of time it was used.
I have attempted to use the %t command (%tc and %tC) but I already have a date and simply need to convert the time value so that Stata understands it as "time" and not simply as a "string".
I am fairly new to Stata and there may be a simple solution that I am overlooking.
Thank you in advance for your advice and suggestions!
Warmly,
Ella
I am analyzing an annual dataset on Electrical Vehicles and need to find the sum of time (hours:minutes:seconds) of a charging station used in a day (month/date/year).
The charging station can have multiple users per day, so I would like to code the dataset so that each date has one output amount of time it was used.
I have attempted to use the %t command (%tc and %tC) but I already have a date and simply need to convert the time value so that Stata understands it as "time" and not simply as a "string".
I am fairly new to Stata and there may be a simple solution that I am overlooking.
Thank you in advance for your advice and suggestions!
Warmly,
Ella
Comment