Hello All,
I am a beginner with Stata, and I have a Time variable that looks like this:
Time
31dec1899 00:01:00
31dec1899 00:02:00
31dec1899 00:03:00
31dec1899 00:04:00
31dec1899 00:05:00
31dec1899 00:06:00
31dec1899 00:07:00
31dec1899 00:08:00
31dec1899 00:08:59
31dec1899 00:10:00
The storage type for this variable is double and display format %tc.
1. I just need the time, that is 00:01:00. How can I generate it from the variable?
2. Additionally, How do i change the time of 00:08:59 to 00:09:00?
Thank you,
Sarah
Related Posts with Generate time from date+time variable
cumulative count of a specific value of a categorical variable across columnsHi, I am using data from the National Longitudinal Survey of Youth 1997 set in wide format. My ques…
Using -KHB- in mediation analysis & results don't matchHi everyone, I am using the KHB command to conduct mediation analysis for a probit model. Previousl…
Rolling yearly earningsHi all, I am working on a dataset consisting of quarterly company data with multiple companies over…
Removing observations within 60 minutes of initial observationI am looking to remove repeat blood tests from my dataset if taken within 60 minutes of the initial …
xtpmg error message when running on logged variablesDear Statalist users, I am running xtpmg on stata 16.0. Running it on my level variables doesn't po…
Subscribe to:
Post Comments (Atom)
0 Response to Generate time from date+time variable
Post a Comment