Simple Robot
Toggle table of contents
4.14.0
js
wasmJs
Platform filter
js
wasmJs
Switch theme
Search in API
Simple Robot
simbot-common-core
/
love.forte.simbot.common.time
/
DateTimestamp
Date
Timestamp
js
wasmJs
class
DateTimestamp
(
val
date
:
Date
)
:
Timestamp
(
source
)
基于
kotlin.js.Date
的
Timestamp
实现。
Author
ForteScarlet
class
DateTimestamp
(
val
date
:
JsAny
)
:
Timestamp
(
source
)
基于
Date
的
Timestamp
实现。
Author
ForteScarlet
Members
Constructors
Date
Timestamp
Link copied to clipboard
js
wasmJs
constructor
(
date
:
Date
)
constructor
(
date
:
JsAny
)
Properties
date
Link copied to clipboard
js
wasmJs
val
date
:
Date
val
date
:
JsAny
milliseconds
Link copied to clipboard
js
wasmJs
open
override
val
milliseconds
:
Long
open
override
val
milliseconds
:
Long
Functions
equals
Link copied to clipboard
js
wasmJs
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
js
wasmJs
open
override
fun
hashCode
(
)
:
Int
open
override
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
js
wasmJs
open
override
fun
toString
(
)
:
String
open
override
fun
toString
(
)
:
String
Inherited functions
compare
To
Link copied to clipboard
js
wasmJs
open
operator override
fun
compareTo
(
other
:
Timestamp
)
:
Int
open
operator override
fun
compareTo
(
other
:
Timestamp
)
:
Int
time
As
Link copied to clipboard
js
wasmJs
open
infix
fun
timeAs
(
unit
:
TimeUnit
)
:
Long
open
infix
fun
timeAs
(
unit
:
TimeUnit
)
:
Long