Main Content

setTargetTimezone

Set target computer time zone preference

Since R2025a

Description

setTargetTimezone(target_object,newTimezone) configures the time zone setting on the target computer.

example

Examples

collapse all

Set the target computer time zone.

setTargetTimezone(tg,'America/New_York');

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Time zone, specified as a character vector or string scalar. For more information about time zones, see Specify Time Zones.

Example: newTimezone = "America/New_York"

Version History

Introduced in R2025a