- Aug
- 2,033
- 82
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;
Joe
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