public class JSTimeInterval extends Object implements IJSObject
| Modifier and Type | Class and Description |
|---|---|
static class |
JSTimeInterval.Format |
| Constructor and Description |
|---|
JSTimeInterval(int months,
double seconds,
JSTimeInterval.Format format) |
JSTimeInterval(Integer years,
Integer months,
Integer days,
Integer hours,
Integer minutes,
Double seconds,
JSTimeInterval.Format format) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IJSObject other) |
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,
JSTimeInterval.Format format) |
static JSTimeInterval |
parse(String v,
JSTimeInterval.Format format) |
String |
toISOString() |
String |
toString() |
public static final String TYPE
public JSTimeInterval(Integer years, Integer months, Integer days, Integer hours, Integer minutes, Double seconds, JSTimeInterval.Format format)
public JSTimeInterval(int months,
double seconds,
JSTimeInterval.Format format)
public static final JSTimeInterval parse(String v, JSTimeInterval.Format format)
public static final JSTimeInterval parse(com.google.gwt.json.client.JSONValue json, JSTimeInterval.Format format)
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()
Copyright © 2018. All rights reserved.