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
Comparing two datasets by two variablesHi, I am very new to stata. I have x1, y1, z variables in data1.dta and x2, y2, N in data2.dta. I a…
initial values not feasible melogitHello -- I am running an melogit on a 330,000 person nested in ~1900 neighborhoods in 47 countries. …
"Not sorted"Dear All, I have individual level panel data that includes spells, with a 6 month *follow up* period…
ICC (Intra-class correlation coefficient) vs "9% of this variation in mortality was attributable solely to the surgeon."I am trying to find out the relationship between a. the ICC for surgeons and the b. the variation du…
power analysis for modified poisson regressionHello, I am trying to determine the power of one my analyses. The outcome is binary and relative ri…
Subscribe to:
Post Comments (Atom)
0 Response to Current timezone
Post a Comment