Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: calculating elapsed time

From   "Colin A. McKenzie" <>
Subject   st: calculating elapsed time
Date   Sat, 22 Jun 2002 20:04:17 -0400

Dear All,

I have a data set that has variables time1, date1, time2 and date2.  The
time variables use the 24 hr clock (ie 1:30 pm is written as 13:30) and
the date variables are in the form dd/mm/yyyy.  I need the number of
hours (to one decimal place) between time1 on date1 and time2 on date2. 
Is there an easy way to calculate this in stata 7?


*   For searches and help try:

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