TimeOnly Class
Namespace: Stimulsoft.System
Inheritance
Implements: IComparable
Constructors
| Constructor | Description |
|---|---|
| constructor(number | DateTime param) |
constructor(param: number | DateTime)
Parameters
- param (number | DateTime)
Properties
| Property | Type | Description |
|---|---|---|
| hour | any | |
| millisecond | any | |
| minute | any | |
now static |
any | |
| second | any |
Methods
| Method | Returns | Description |
|---|---|---|
| compareTo | number | |
| equals | boolean | |
fromDateTime static |
TimeOnly | |
| getHashCode | number | |
| implements | any[] | |
parse static |
TimeOnly | |
| toDateTime | DateTime | |
| toString | string | |
tryParse static |
boolean |
Method Details
compareTo
compareTo(other: TimeOnly): number
Parameters
- other (TimeOnly)
Returns number
equals
equals(time: any): boolean
Parameters
- time (any)
Returns boolean
fromDateTime static
fromDateTime(dateTime: DateTime): TimeOnly
Parameters
- dateTime (DateTime)
Returns TimeOnly
getHashCode
getHashCode(): number
Returns number
implements
implements(): any[]
Returns any[]
parse static
parse(s: string): TimeOnly
Parameters
- s (string)
Returns TimeOnly
toDateTime
toDateTime(): DateTime
Returns DateTime
toString
toString(format: any): string
Parameters
- format (any)
Returns string
tryParse static
tryParse(s: string, refResult: { ref: TimeOnly }): boolean
Parameters
- s (string)
- refResult ({ ref: TimeOnly })
Returns boolean
Fields
| Field | Type | Description |
|---|---|---|
| hashCode | any | |
| hashCode | any | |
| hashCode | any | |
| hashCode | any |