Returns a datetimezone value from the given {0}. If the given {0} is null , DateTimeZone.From returns null . If the given ...

Returns a datetimezone value from the given {0}. If the given {0} is null, DateTimeZone.From returns null.  If the given {0} is datetimezone, {0} is returned. Values of the following types can be converted to a datetimezone value:
      
  • text: A datetimezone value from textual representation. See DateTimeZone.FromText for details.
  • date: A datetimezone with {0} as the date component, 12:00:00 AM as the time component and the offset corresponding the local time zone.
  • datetime: A datetimezone with {0} as the datetime and the offset corresponding the local time zone.
  • time: A datetimezone with the date equivalent of the OLE Automation Date of 0 as the date component, {0} as the time component and the offset corresponding the local time zone.
  • number: A datetimezone with the datetime equivalent the OLE Automation Date expressed by {0} and the offset corresponding the local time zone.
If {0} is of any other type, an error is returned.