public class JSTimeInterval extends Object implements IJSObject
| Constructor and Description |
|---|
JSTimeInterval(int months,
double seconds,
DurationFormat format) |
JSTimeInterval(Integer years,
Integer months,
Integer days,
Integer hours,
Integer minutes,
Double seconds,
DurationFormat format) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IJSObject other) |
String |
getDisplayValue() |
long |
getHDays() |
long |
getHHours() |
long |
getHMinutes() |
int |
getHMonths() |
double |
getHSeconds() |
int |
getHYears() |
com.google.gwt.json.client.JSONValue |
getJSONValue() |
int |
getMonths() |
double |
getSeconds() |
String |
getType() |
boolean |
isEquals(IJSObject other) |
static JSTimeInterval |
parse(com.google.gwt.json.client.JSONValue json,
DurationFormat format,
DurationPrecision maxItem) |
static JSTimeInterval |
parse(String v,
DurationFormat format,
DurationPrecision maxItem) |
String |
toISOString() |
String |
toString() |
public static final String TYPE
public JSTimeInterval(Integer years, Integer months, Integer days, Integer hours, Integer minutes, Double seconds, DurationFormat format)
public JSTimeInterval(int months,
double seconds,
DurationFormat format)
public static final JSTimeInterval parse(String v, DurationFormat format, DurationPrecision maxItem)
public static final JSTimeInterval parse(com.google.gwt.json.client.JSONValue json, DurationFormat format, DurationPrecision maxItem)
public int compareTo(IJSObject other)
compareTo in interface Comparable<IJSObject>public int getMonths()
public double getSeconds()
public int getHYears()
public int getHMonths()
public long getHDays()
public long getHHours()
public long getHMinutes()
public double getHSeconds()
public com.google.gwt.json.client.JSONValue getJSONValue()
getJSONValue in interface IJSObjectpublic String toISOString()
public String getDisplayValue()
getDisplayValue in interface IJSObjectCopyright © 2018. All rights reserved.