Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: calculating elapsed time

From   "Mendoza Aldana, Dr Jorge Antonio (WPRO)" <>
To   "" <>
Subject   st: calculating elapsed time
Date   Wed, 24 Nov 2010 12:04:13 +0800

Dear Statalist,
I am using Stata 10 and I would like to calculate the elapsed time, in hours, between two time points. My data is formatted as below, the hours and minutes are separate string variables.
variable: date1  HH1  MM1  date2  HH2  MM2
          -----  ---  ---  -----  ---  ---
format:   date   str  str  date   str  str

I would appreciate very much your assistance in finding a way to solve this or indicating me any related link.
Kind regards,

This message was scanned for viruses with Trend Micro ScanMail, GFI MailSecurity and  GFI MailEssentials by the World Health Organization Regional Office for the Western Pacific.  However, the recipient is advised to scan this e-mail and any attached files for viruses.


This e-mail, together with any attachments, is intended for the named recipients only and is confidential. It may also be privileged or otherwise protected by law.

If you have received it in error, please notify the sender immediately by reply e-mail and delete it and any attachments from your system. You may not copy or disclose its contents to anyone.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index