Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@TIMEZONE missing from help

May
572
4
Both the V10 and V11 help files are missing index entries for the internal variable _TIMEZONE.
 
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.
 
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
 
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.
 

Similar threads

Back
Top