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

st: RE: RE: hours and minutes help


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: hours and minutes help
Date   Mon, 1 Dec 2003 18:00:27 -0000

Correction 

> gen endtime2 = floor(endtime) + 100 * mod(endtime,1) / 60 
> gen starttime2 = floor(starttime) + 100 * mod(starttime,1) / 60 

Nick 
[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Nick Cox
> Sent: 01 December 2003 17:52
> To: [email protected]
> Subject: st: RE: hours and minutes help
> 
> 
> I wouldn't use -egenmore- here, as 
> an attack from first principles is more direct. 
> 
> gen endtime2 = floor(endtime) + mod(endtime,1) / 60 
> gen starttime2 = floor(starttime) + mod(starttime,1) / 60 
> gen lapse = endtime2 - starttime2 
> 
> Nick 
> [email protected] 
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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