If I do this:
. gen double d=clock("20200101 01:01:01", "YMD hms")
. format %tC d
. browse
then d[1] is "01jan2020 01:00:34"
if I use a float instead then d[1] is "01jan2020 01:01:02"
is it possible to have better precision when using millisecond resolution?
Related Posts with Date precision
Generating new variable by counting observationsHello Members, I have a data set (shown below). I want to generate a new variable that counts the n…
Age rangeDear all, I would like to know how to specify age range in Stata. My current value range is 25-100,…
Splitting variable based on conditionDear all, I wonder if it is possible to split string variables containing numbers using 'split Vari…
Problem with Outreg2Hi, I wonder if the outreg2 command comes through an option that allows the coefficient and their se…
linear regressionHello great statisticians, I am a bit confused with using lfit vs predicted values. I have the data…
Subscribe to:
Post Comments (Atom)
0 Response to Date precision
Post a Comment