Skip to content

Commit c7a5054

Browse files
authored
Update batch-automatic-scaling.md
Add example for adjusting time variable for local timezone.
1 parent 4e41952 commit c7a5054

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/batch/batch-automatic-scaling.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ $isWorkingWeekdayHour = $workHours && $isWeekday;
664664
$TargetDedicatedNodes = $isWorkingWeekdayHour ? 20:10;
665665
$NodeDeallocationOption = taskcompletion;
666666
```
667+
`$curTime` can be adjusted to reflect your local time zone by adding `time()` to the product of `TimeZoneInterval_Hour` and your UTC offset. For instance, use `$curTime = time() + (-6 * TimeInterval_Hour);` for Mountain Daylight Time (MDT). Keep in mind that the offset would need to be adjusted at the start and end of daylight saving time (if applicable).
667668

668669
### Example 2: Task-based adjustment
669670

0 commit comments

Comments
 (0)