<>
*************
capture which dirlist
if _rc ssc install dirlist
clear*
set obs 10
gen myvar=_n
save myfile, replace
dirlist myfile.dta
ret li
*************
HTH
Martin
-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of László Sándor
Sent: Dienstag, 21. September 2010 21:24
To: statalist@hsphsun2.harvard.edu
Subject: st: how to use timestamp of a file (that one is insheeting)
Hi,
I would like to use the date and time a file was created in some
analysis. The operating system knows that time, of course. However, I
found no Stata command that would fetch that data for me, nor a way I
could use the command line to get that (though I know I can invoke
that with -shell-).
The file would be the same that an -insheet- command imports in my
code, in case this helps anything.
Thank you very much,
Laszlo
László Sándor
PhD candidate
Department of Economics
Harvard University
*
* 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/