FixedTimestamp struct | QSYS API Reference Guide
Estimated reading time: 3 minutes
Holds a fixed-timestamp value with the given separator.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Properties
Type | Name | Description |
---|---|---|
Int32 | Day | Returns the day in this FixedTimestamp value. |
DateTimeFormat | Format | IFixedDateTime Format implementation. Returns DateTimeFormat.ISO. |
Int32 | Hour | Returns the hour in this FixedTimestamp value. |
DateTimeDataKind | Kind | IFixedDateTime Kind implementation. Returns DateTimeDataKind.Timestamp. |
Int32 | Length | Gets the length of the FixedTimestamp value, given its separator. |
Int32 | Milisecond | Returns the milliseconds in this FixedTimestamp value. |
Int32 | Minute | Returns the minutes in this FixedTimestamp value. |
Int32 | Month | Returns the month in this FixedTimestamp value. |
Int32 | Second | Returns the seconds in this FixedTimestamp value. |
DateTimeSeparator | Separator | IFixedDateTime Separator implementation. Returns the separator for this FixedTimestamp value. |
DateTime | Value | Gets the value of this FixedTimestamp as a System.DateTime value. |
Object | ValueAsObject | Returns the value of this FixedTimestamp as an object. |
Int32 | Year | Returns the year in this FixedTimestamp value. |
Methods
Signature | Description |
---|---|
CompareTo(Object) | Compares this instance to a specified DateTime or FixedSize type and returns an indication of their relative values. |
Convert(DateTime) | Convert a DateTime to a FixedTimestamp of the same separator. |
ToNumericString() | Convert to numeric string representation of the FixedTimestamp, according to its format with no separators. |
ToString() | Convert to the string representation of the FixedTimestamp, according to its format and separator. |
ToString(DateTimeSeparator) | Convert to the string of the FixedTimestamp, according to the given separator. |
int CompareTo(object obj)
Compares this instance to a specified DateTime or FixedSize type and returns an indication of their relative values.
int CompareTo(object obj)
Parameters
Type | Parameter name | Description |
---|---|---|
Object | obj | The object to compare against. |
Returns
Type | Description |
---|---|
Int32 | A signed number indicating the relative values of this instance and input value. If object cannot be compared, it throws exception. |
IFixedSizeType<DateTime> Convert(DateTime value)
Convert a DateTime to a FixedTimestamp of the same 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 FixedTimestamp value with the same separator. |
string ToNumericString()
Convert to numeric string representation of the FixedTimestamp, according to its format with no separators.
string ToNumericString()
string ToString()
Convert to the string representation of the FixedTimestamp, according to its format and separator.
string ToString()
string ToString(DateTimeSeparator separator)
Convert to the string of the FixedTimestamp, according to the given separator.
string ToString(DateTimeSeparator separator)
Parameters
Type | Parameter name | Description |
---|---|---|
DateTimeSeparator | separator | DateTimeSeparator of the FixedTimestamp. |
Returns
Type | Description |
---|---|
String | The string representation of the FixedTimestamp value, with the given separator. |