Class LongTimeFormat
Represents the long time format used for parsing and formatting.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public sealed class LongTimeFormat : ITimeFormat
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | The |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |
Overrides
GetTimeDisplayFormat(CultureInfo)
Gets the format to use to display a DateTime as a time value.
Declaration
public string GetTimeDisplayFormat(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
System.String | A format to use during display of a DateTime. |
GetTimeParseFormats(CultureInfo)
Gets the formats to use to parse a string to a DateTime.
Declaration
public string[] GetTimeParseFormats(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | Culture used to determine formats. |
Returns
Type | Description |
---|---|
System.String[] | An array of formats to be used during parsing. |
Operators
| Improve this Doc View SourceEquality(LongTimeFormat, LongTimeFormat)
Implements the operator ==.
Declaration
public static bool operator ==(LongTimeFormat left, LongTimeFormat right)
Parameters
Type | Name | Description |
---|---|---|
LongTimeFormat | left | The left instance to compare. |
LongTimeFormat | right | The right instance to compare. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(LongTimeFormat, LongTimeFormat)
Implements the operator !=.
Declaration
public static bool operator !=(LongTimeFormat left, LongTimeFormat right)
Parameters
Type | Name | Description |
---|---|---|
LongTimeFormat | left | The left instance to compare. |
LongTimeFormat | right | The right instance to compare. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |