@TIMEZONE missing from help

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 29, 2008
517
3
Groton, CT
#3
Re: _TIMEZONE missing from help

That's an undocumented and unsupported variable name. If you're looking for the time zone offset, use %_tzo.

(How did you come across _TIMEZONE -- were you browsing the strings in takecmd.dll?)
In this case, I did not browse the strings in the .DLL, though I admit to having done things like that in the past. Not this time. This was innocent.

I came across it testing out the new feature in V11 using F9 for completion of internal variable names. I typed the underscore and then F9 repeatedly, looking at all the names it generated. When I saw _TIMEZONE, I was curious, of course, and looked at the value. (I presume that's the "standard" number of minutes offset from UTC, without taking daylight time into account.) Then I looked for it in V10 and found it was there, too.

As long as it's there, why not document it? Can't hurt anyone, I suspect.

And, of course, it's _TIMEZONE, not @TIMEZONE. Sorry 'bout that.
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#4
Re: _TIMEZONE missing from help

> ---Quote (Originally by rconn)---
> That's an undocumented and unsupported variable name. If you're
> looking for the time zone offset, use %_tzo.
>
> (How did you come across _TIMEZONE -- were you browsing the strings in
> takecmd.dll?)
> ---End Quote---
> In this case, I did not browse the strings in the .DLL, though I admit
> to having done things like that in the past. Not this time. This
> was innocent.
>
> I came across it testing out the new feature in V11 using F9 for
> completion of internal variable names. I typed the underscore and
> then F9 repeatedly, looking at all the names it generated. When I saw
> _TIMEZONE, I was curious, of course, and looked at the value. (I
> presume that's the "standard" number of minutes offset from UTC,
> without taking daylight time into account.) Then I looked for it in
> V10 and found it was there, too.
>
> As long as it's there, why not document it? Can't hurt anyone, I
> suspect.
Can't help anyone either; it's obsolete and has been replaced by %_tzo.
It's only maintained for backwards compatibility with (very) old batch
files.

Rex Conn
JP Software
 
May 29, 2008
517
3
Groton, CT
#5
Re: _TIMEZONE missing from help

Can't help anyone either; it's obsolete and has been replaced by %_tzo.
It's only maintained for backwards compatibility with (very) old batch
files.

Rex Conn
JP Software
Ah, yes. I remember now. [duh. hits palm to forehead.] I was one of the people who asked for %_TZO and %_TZN, having found that %_TIMEZONE alone was insufficient.

What goes around comes around, I guess.


Many good features in V11, Rex. I will upgrade when you declare it to be soup.