FixedTime struct | QSYS API Reference Guide
Estimated reading time: 3 minutes
Holds a fixed-time value in the specified format and with the given separator.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Properties
| Type | Name | Description |
|---|---|---|
| DateTimeFormat | Format | IFixedDateTime Format implementation. Returns the format for this FixedTime value. |
| Int32 | Hour | Returns the hour in this FixedTime value. |
| DateTimeDataKind | Kind | IFixedDateTime Kind implementation. Returns DateTimeDataKind.Time. |
| Int32 | Length | Gets the length of the FixedTime value, given its format and separator. |
| Int32 | Minute | Returns the minutes in this FixedTime value. |
| Int32 | Second | Returns the seconds in this FixedTime value. |
| DateTimeSeparator | Separator | IFixedDateTime Separator implementation. Returns the separator for this FixedTime value. |
| TimeOnly | TimeValue | Gets the value of this FixedTime as a TimeOnly value. |
| DateTime | Value | Gets the value of this FixedTime as a System.DateTime value. |
| Object | ValueAsObject | Returns the value of this FixedTime as an object. |
Methods
| Signature | Description |
|---|---|
| CompareTo(Object) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
| Convert(DateTime) | Convert a DateTime to a FixedTime of the same format and separator. |
| ToNumericString() | Convert to numeric string representation of the FixedTime, according to its format with no separators. |
| ToString() | Convert to the string representation of the FixedTime, according to its format and separator. |
| ToString(DateTimeFormat, DateTimeSeparator) | Convert to the string of the FixedTime, according to the given format and separator. |
int CompareTo(object obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
int CompareTo(object obj)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Object | obj | The object to compare against. |
Returns
| Type | Description |
|---|---|
| Int32 | A value that indicates the relative order of the objects being compared. |
IFixedSizeType<DateTime> Convert(DateTime value)
Convert a DateTime to a FixedTime of the same format and separator.
IFixedSizeType<DateTime> Convert(DateTime value)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| DateTime | value | The DateTime value to convert. |
Returns
| Type | Description |
|---|---|
| IFixedSizeType`1 | A new FixedTime value with the same format and separator. |
string ToNumericString()
Convert to numeric string representation of the FixedTime, according to its format with no separators.
string ToNumericString()
string ToString()
Convert to the string representation of the FixedTime, according to its format and separator.
string ToString()
string ToString(DateTimeFormat format, DateTimeSeparator separator)
Convert to the string of the FixedTime, according to the given format and separator.
string ToString(DateTimeFormat format, DateTimeSeparator separator)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| DateTimeFormat | format | DateTimeFormat of the FixedTime. |
| DateTimeSeparator | separator | DateTimeSeparator of the FixedTime. |
Returns
| Type | Description |
|---|---|
| String | The string representation of the FixedTime value, with the given format and separator. |