@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() |
int |
hours() |
Moment |
hours(int hours) |
boolean |
isSame(Moment moment) |
boolean |
isSame(Moment moment,
String period) |
boolean |
isValid() |
Moment |
milliseconds(int milliseconds) |
int |
minutes() |
Moment |
minutes(int minutes) |
int |
seconds() |
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()
int hours()
int minutes()
int seconds()
boolean isValid()
@JsOverlay default Long asLong()
@JsOverlay default Date asDate()
boolean isSame(Moment moment)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.