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
problem unzipping files stata- I/O error on write could not perform unzipI apologize for the possible typos, english is not my mother tongue. I´ve been working on a loop to…
Help with 1 group found, 2 required r(420) errorI tried running ttest on my DV (whosefault) and the IV (successcond) but for some reason, Stata tell…
Comparing models using AIC/BICI am comparing clogit models using AIC/BIC. I have an outcome variable (outcome), three independent …
Variable Management > I got the following two variables in my dataset: > > Number1 Number2 > 000752 > 00…
When using esttab with the option mgroups(), how to center the group column title?Hi all, I'm a little confusion with the use of esttab. For example, for each sample I ran two regres…
Subscribe to:
Post Comments (Atom)
0 Response to Current timezone
Post a Comment