Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Time/Date query

From   "Maarten Buis" <>
To   <>
Subject   st: RE: Time/Date query
Date   Wed, 27 Jun 2007 11:22:03 +0200

--- Christopher J Gerry wrote:
> I have a query regarding transforming a date read into Stata as a string
> variable which I need to translate into a numeric variable (and then store
> in Stata's %tc format). I'd be grateful if anyone has any idea what I'm
> doing wrong. It falls over when I use the -clock- function. But after studying
> the help pages am still not sure why! The error message is r(133) "Unknown
> function clock()".
 > I am using Intercooled Stata v9.2.

The -clock- command is new to Stata 10, so if you want to use it you'll have
to upgrade. If you don't want to, you can look at the -ntimeofday- command
by Nick Cox (see: -findit ntimeofday-).

Hope this helps,
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

*   For searches and help try:

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