@JsType(isNative=true)
public interface Moment
Modifier and Type | Interface and Description |
---|---|
static class |
Moment.Builder |
Modifier and Type | Method and Description |
---|---|
Moment |
add(int number,
String period) |
default Date |
asDate() |
default Long |
asLong() |
Moment |
endOf(String type) |
String |
format() |
String |
format(String format) |
String |
fromNow() |
Moment |
hours(int hours) |
boolean |
isSame(Moment moment) |
boolean |
isSame(Moment moment,
String period) |
Moment |
milliseconds(int milliseconds) |
Moment |
minutes(int minutes) |
Moment |
seconds(int seconds) |
Moment |
startOf(String type) |
Moment |
subtract(int number,
String period) |
String |
toString() |
Double |
valueOf() |
Moment hours(int hours)
Moment minutes(int minutes)
Moment seconds(int seconds)
Moment milliseconds(int milliseconds)
String fromNow()
String format()
Double valueOf()
@JsOverlay default Long asLong()
@JsOverlay default Date asDate()
boolean isSame(Moment moment)
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.