Bookmark and Share

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


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

AW: st: AW: extract hours, minutes and seconds from date


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: AW: extract hours, minutes and seconds from date
Date   Fri, 21 May 2010 11:28:59 +0200

<> 

" 
The original time variable is stored as a double (%tc) and ideally I
would not like to transfer it to a string variable."


Well, use Maarten`s solution then. In your original post, you requested
"08:50:00" which won`t happen for a numeric variable. You can have the
parts, of course, just as Maarten showed.


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von raoul reulen
Gesendet: Freitag, 21. Mai 2010 11:22
An: [email protected]
Betreff: Re: st: AW: extract hours, minutes and seconds from date

Thanks Martin

The original time variable is stored as a double (%tc) and ideally I
would not like to transfer it to a string variable.
*
*   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index