Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: date-time help


From   [email protected]
To   [email protected]
Subject   st: date-time help
Date   Fri, 16 Jan 2009 15:15:06 -0600 (CST)

Hello,

I have Stata 8, and I'm trying to generate a new variable which indicates
the elapsed time (in minutes or seconds) between two events. The variables
I want to substract are stored as str24, and contain both date and time in
the same cell
:
03/07/06 17:15:00, 000000
03/07/06 18:05:00, 000000

I would like to generate a numerical variable which indicates that the
elapsed time between the two events is 50 minutes. How is this possible?

I really appreciate your help,
M


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index