Timezone.exe: Daylight Saving Time Update Utility


This command-line tool updates the daylight saving information for the current time zone in the registry. In some countries and regions, the start and end of daylight saving time are changed every year, and there is no fixed start or end date.

This tool runs on Windows 2000, Windows NT, and Windows 95/98.

TimeZone Syntax

one steptimezone [/g] [/s StartDate EndDate] [/?]

Where:

/g
gets the current time zone.
/s StartDate EndDate
sets a new time zone, with StartDate the date that daylight saving time begins and EndDate the date that daylight saving time ends.

StartDate and EndDate use the format:
Hour:DayOfWeek:Day:Month

Hour specifies the hour of the day using a 24-hour clock. Valid values are 00 to 23.

DayOfWeek specifies the day of the week; Sunday = 0, Monday = 1, and so on. Valid values are 0 to 6.

Day specifies the occurrence of DayOfWeek during the month; 1 = first occurrence of day, 2 = second occurrence of day, and so on. Valid values are 1 to 5. For example, if DayOfWeek is Sunday, then 1 = first Sunday, 4 = fourth Sunday, 5 = last Sunday.

Month specifies the month; January = 1, February = 2, and so on. Valid values are 01 to 12.

/?
shows the command-line usage.

TimeZone Example

timezone /s 02:0:5:04 02:2:1:10

Daylight saving information for the current time zone is changed to the following:

Daylight saving time begins at 2:00 on the last Sunday in April (02:0:5:04).

Daylight saving time ends at 2:00 on the fourth Tuesday in October (02:2:4:10).

File Required