/ fm / liveswitch / DateTime
Class: DateTime
fm.liveswitch.DateTime
Table of contents
Constructors
Properties
Methods
- addHours
- addMilliseconds
- addMinutes
- addSeconds
- getDate
- getDay
- getHour
- getMillisecond
- getMinute
- getMonth
- getSecond
- getTicks
- getTypeString
- getYear
- toUniversalTime
- getNow
- getUtcNow
Constructors
constructor
+ new DateTime(date
: Date): DateTime
Parameters:
Name | Type |
---|---|
date |
Date |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:6
+ new DateTime(ticks
: number): DateTime
Parameters:
Name | Type |
---|---|
ticks |
number |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:7
+ new DateTime(year
: number, month
: number, day
: number, hour
: number, minute
: number, second
: number): DateTime
Parameters:
Name | Type |
---|---|
year |
number |
month |
number |
day |
number |
hour |
number |
minute |
number |
second |
number |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:8
+ new DateTime(year
: number, month
: number, day
: number, hour
: number, minute
: number, second
: number, millisecond
: number): DateTime
Parameters:
Name | Type |
---|---|
year |
number |
month |
number |
day |
number |
hour |
number |
minute |
number |
second |
number |
millisecond |
number |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:9
Properties
_date
• Private
_date: Date
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:6
Methods
addHours
▸ addHours(hours
: number): DateTime
Parameters:
Name | Type |
---|---|
hours |
number |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:69
addMilliseconds
▸ addMilliseconds(milliseconds
: number): DateTime
Parameters:
Name | Type |
---|---|
milliseconds |
number |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:78
addMinutes
▸ addMinutes(minutes
: number): DateTime
Parameters:
Name | Type |
---|---|
minutes |
number |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:72
addSeconds
▸ addSeconds(seconds
: number): DateTime
Parameters:
Name | Type |
---|---|
seconds |
number |
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:75
getDate
▸ getDate(): Date
Returns: Date
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:39
getDay
▸ getDay(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:54
getHour
▸ getHour(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:57
getMillisecond
▸ getMillisecond(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:66
getMinute
▸ getMinute(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:60
getMonth
▸ getMonth(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:51
getSecond
▸ getSecond(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:63
getTicks
▸ getTicks(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:42
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:3
getYear
▸ getYear(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:48
toUniversalTime
▸ toUniversalTime(): DateTime
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:45
getNow
▸ Static
getNow(): DateTime
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:33
getUtcNow
▸ Static
getUtcNow(): DateTime
Returns: DateTime
Defined in: Generated/TypeScript/fm.liveswitch/DateTime.ts:36