Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: how to use timestamp of a file (that one is insheeting)


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: how to use timestamp of a file (that one is insheeting)
Date   Tue, 21 Sep 2010 21:32:53 +0200

<>

*************
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index