C# TimeZone ToString
Description
TimeZone ToString
returns a string that represents the
current object.
Syntax
TimeZone.ToString
has the following syntax.
public virtual string ToString()
Returns
TimeZone.ToString
method returns A string that represents the current object.
Example
The following code shows how to use TimeZone.ToString()
.
/*from w w w . j a va 2 s. c om*/
using System;
using System.Globalization;
class TimeZoneDemo
{
static void Main( )
{
TimeZone localZone = TimeZone.CurrentTimeZone;
Console.WriteLine(localZone.ToString() );
}
}
The code above generates the following result.