_DST in TCC/LE

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
In TCC, _DST returns 1 if daylight savings time is in effect, or 0 if it is not.

The _DST variable is not available in TCC/LE.

In TCC/LE, you can still determine if daylight savings time is in effect by using PowerShell;

Code:
set _dst=0
if %@execstr[powershell -noprofile -command "& write-host (get-date).IsDaylightSavingTime()"] eq True set _dst=1
echo %_dst
Joe
 
Likes: Exolon