[ Version ( deprecated = true , deprecated_since = "2.68" , replacement = "TimeZone.identifier" ) ]
public TimeZone (string identifier)
Warning: TimeZone is deprecated since 2.68. Use TimeZone.identifier.
A version of TimeZone.new_identifier which returns the UTC time zone if identifier
could not be parsed or loaded.
Use TimeZone.new_identifier instead, as it provides error reporting. Change your code to handle a potentially null return value.
If you need to check whether identifier
was loaded successfully, use TimeZone.new_identifier
.
identifier |
a timezone identifier |
the requested timezone |