I would like to know if it is possible to obtain the current timezone (offset in hours/minutes) of the machine where Stata is running.
This has been asked before, but without a straightforward solution, see for example:
- https://www.stata.com/statalist/arch.../msg00758.html
- https://www.stata.com/statalist/arch.../msg00413.html
I understand that I can do the following on Windows command line by:
- running tzutil /g, then capturing and parsing the output, and deducing the offset from the reported timezone name.
- running systeminfo | find "Time Zone" , which is way, way, way, waaaay slower, but gives a reliable offset in hours, not just the timezone name.
Clearly, I would prefer a platform-independent standard solution, which would be fast and gives me directly something like "+02:00", possibly with further information on the daylight saving, timezone name, and other attributes...
Are there any additional options for Stata 17 perhaps?
Thank you, Sergiy Radyakin
Related Posts with Current timezone
can we generate 0,1 and missing values simutaneously? Code: gen A = B==0 & C==1 replace A = . if B== .| C==. In other words, can we simplify the two …
r(1400) after meglmHi together, I tried to use meglm models according to this tutorial: https://stats.idre.ucla.edu/st…
Bayesian regression analysis with sampling weightHi all Does anyone know if I could do Bayesian regression analysis with sampling weight? I have got …
cluster on firm or two-way level?Hello all, If the model is y_it = x1_it + x2_it + x3_t + e_it, which means there is a time-serial v…
Obtain new variable after 3 consecutive signals and generate new values after 6 and 8 periodsHi! With the variable buy_signal I've created buy signals. I have the following rule after which I w…
Subscribe to:
Post Comments (Atom)
0 Response to Current timezone
Post a Comment