Hi all,
I'm working on a data set of total working hours per day (mon_total to sat_total) as follows,
I would like to make a summation of mon_total until sat_total to find out the total working hour per week using egen rowtotal. However, whenever there's a summation result exceeding 24 hours (for example 25 hours and 45 minutes) stata displays it as 1:45. Is there a way to display a time duration which exceeds 24 hours as it is? Many thanks in advance!
I'm working on a data set of total working hours per day (mon_total to sat_total) as follows,
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(mon_total tue_total wed_total thu_total fri_total sat_total) -1.8934371e+12 -1.8934371e+12 -1.8934371e+12 -1.8934371e+12 -1.8934398e+12 -1.8934371e+12 -1.893438e+12 -1.893438e+12 -1.893438e+12 -1.893438e+12 -1.8934452e+12 -1.893438e+12 -1.893438e+12 -1.893438e+12 -1.893438e+12 -1.893438e+12 -1.8934452e+12 -1.893438e+12 -1.8934371e+12 -1.8934371e+12 -1.8934371e+12 -1.8934371e+12 -1.8934371e+12 -1.8934371e+12 -1.8934407e+12 -1.8934407e+12 -1.8934407e+12 -1.8934407e+12 -1.8934446e+12 -1.8934446e+12 -1.8934416e+12 -1.8934416e+12 -1.8934416e+12 -1.8934416e+12 -1.8934461e+12 -1.8934416e+12 -1.8934389e+12 -1.8934389e+12 -1.8934389e+12 -1.8934389e+12 -1.8934452e+12 -1.8934434e+12 -1.8934395e+12 -1.8934395e+12 -1.8934395e+12 -1.8934395e+12 -1.8934452e+12 -1.8934434e+12 -1.8934389e+12 -1.8934389e+12 -1.8934389e+12 -1.8934389e+12 -1.8934452e+12 -1.8934389e+12 end format %tchh:MM mon_total format %tchh:MM tue_total format %tchh:MM wed_total format %tchh:MM thu_total format %tchh:MM fri_total format %tchh:MM sat_total
Comment