C# Class HandCoded.Finance.TimeZone

Inheritance: IComparable
Show file Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Public Properties

Property Type Description
UTC TimeZone

Public Methods

Method Description
CompareTo ( TimeZone other ) : int

Returns the result of comparing this instance to another TimeZone.

CompareTo ( object other ) : int

Returns the result of comparing this instance to another object.

Equals ( TimeZone other ) : bool

Determines if this instance and another TimeZone hold the same value.

Equals ( object other ) : bool

Determines if this TimeZone instance and another object hold the same time value.

GetHashCode ( ) : int

Returns the hash value of the instance for hash based data structures and algorithms.

IsUTC ( ) : bool

Determines if the TimeZone is UTC.

TimeZone ( ) : System

Constructs a TimeZone instance initialised with the offset for the default time zone where the application is executing.

TimeZone ( int offset ) : System

Constructs a TimeZone instance having a specified offset value.

ToString ( ) : string

Return a formatted represetation of the TimeZone. If the offset is zero this will be a 'Z' otherwise it will be '+HH:MM' or '-HH:MM'.

Method Details

CompareTo() public method

Returns the result of comparing this instance to another TimeZone.
public CompareTo ( TimeZone other ) : int
other TimeZone The TimeZone instance to compare with.
return int

CompareTo() public method

Returns the result of comparing this instance to another object.
public CompareTo ( object other ) : int
other object The instance to compare with.
return int

Equals() public method

Determines if this instance and another TimeZone hold the same value.
public Equals ( TimeZone other ) : bool
other TimeZone The other TimeZone.
return bool

Equals() public method

Determines if this TimeZone instance and another object hold the same time value.
public Equals ( object other ) : bool
other object The other to compare with.
return bool

GetHashCode() public method

Returns the hash value of the instance for hash based data structures and algorithms.
public GetHashCode ( ) : int
return int

IsUTC() public method

Determines if the TimeZone is UTC.
public IsUTC ( ) : bool
return bool

TimeZone() public method

Constructs a TimeZone instance initialised with the offset for the default time zone where the application is executing.
public TimeZone ( ) : System
return System

TimeZone() public method

Constructs a TimeZone instance having a specified offset value.
public TimeZone ( int offset ) : System
offset int The timezone offset in minutes.
return System

ToString() public method

Return a formatted represetation of the TimeZone. If the offset is zero this will be a 'Z' otherwise it will be '+HH:MM' or '-HH:MM'.
public ToString ( ) : string
return string

Property Details

UTC public static property

A TimeZone instance representing UTC.
public static TimeZone UTC
return TimeZone