Thanks, guys. More information that I can soak in all at once.
@jsmorley, your weather.com code works just fine here. But how does one automatically get one's current lat./long.? Would it be by parsing some other web site which detects your location (which web site)? That can be quite inaccurate (based on your ISP's location?), but would likely still be accurate enough for a timezone, which is usually quite large.
On the other hand, timezone abbreviations are really not very precise, as shown in those tables, where they indicate that CST, for example, can refer to several different countries. So in order to be truly portable, I wonder if I should use a different approach, such as a GMT offset, which is much less ambiguous? So, for example, instead of '8:30 pm EDT' it could be something like '8:30 pm (GMT -0400)'.
Doing a little searching, I found this Lua snippet which provides just that: https://lua-users.org/wiki/TimeZone . But I haven't yet figured out how to use it.
Using it just for myself, I could simply hard-code the abbreviation. But in order to be truly portable, which approach appeals to you guys?
@jsmorley, your weather.com code works just fine here. But how does one automatically get one's current lat./long.? Would it be by parsing some other web site which detects your location (which web site)? That can be quite inaccurate (based on your ISP's location?), but would likely still be accurate enough for a timezone, which is usually quite large.
On the other hand, timezone abbreviations are really not very precise, as shown in those tables, where they indicate that CST, for example, can refer to several different countries. So in order to be truly portable, I wonder if I should use a different approach, such as a GMT offset, which is much less ambiguous? So, for example, instead of '8:30 pm EDT' it could be something like '8:30 pm (GMT -0400)'.
Doing a little searching, I found this Lua snippet which provides just that: https://lua-users.org/wiki/TimeZone . But I haven't yet figured out how to use it.
Using it just for myself, I could simply hard-code the abbreviation. But in order to be truly portable, which approach appeals to you guys?
Statistics: Posted by qwerky — Yesterday, 11:29 pm