public class GMTDate
Date in GMT timezone
| Modifier and Type | Class and Description |
|---|---|
static class |
GMTDate.Companion |
| Modifier and Type | Field and Description |
|---|---|
static GMTDate.Companion |
Companion |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GMTDate other) |
int |
component1()
:
|
int |
component2()
:
|
int |
component3()
:
|
WeekDay |
component4()
an instance of the corresponding day of week
|
int |
component5()
:
|
int |
component6()
:
|
Month |
component7()
an instance of the corresponding month
|
int |
component8()
:
|
long |
component9()
is a number of epoch milliseconds
|
GMTDate |
copy(int seconds,
int minutes,
int hours,
WeekDay dayOfWeek,
int dayOfMonth,
int dayOfYear,
Month month,
int year,
long timestamp)
Date in GMT timezone
|
boolean |
equals(java.lang.Object p) |
int |
getDayOfMonth()
:
|
WeekDay |
getDayOfWeek()
an instance of the corresponding day of week
|
int |
getDayOfYear()
:
|
int |
getHours()
:
|
int |
getMinutes()
:
|
Month |
getMonth()
an instance of the corresponding month
|
int |
getSeconds()
:
|
long |
getTimestamp()
is a number of epoch milliseconds
|
int |
getYear()
:
|
int |
hashCode() |
java.lang.String |
toString() |
public static GMTDate.Companion Companion
public int compareTo(GMTDate other)
public int getSeconds()
:
seconds from 0 to 60(last is for leap second)
public int getMinutes()
:
minutes from 0 to 59
public int getHours()
:
hours from 0 to 23
public WeekDay getDayOfWeek()
an instance of the corresponding day of week
public int getDayOfMonth()
:
day of month from 1 to 31
public int getDayOfYear()
:
day of year from 1 to 366
public Month getMonth()
an instance of the corresponding month
public int getYear()
:
year in common era(CE: https://en.wikipedia.org/wiki/Common_Era)
public long getTimestamp()
is a number of epoch milliseconds
public int component1()
:
seconds from 0 to 60(last is for leap second)
public int component2()
:
minutes from 0 to 59
public int component3()
:
hours from 0 to 23
public WeekDay component4()
an instance of the corresponding day of week
public int component5()
:
day of month from 1 to 31
public int component6()
:
day of year from 1 to 366
public Month component7()
an instance of the corresponding month
public int component8()
:
year in common era(CE: https://en.wikipedia.org/wiki/Common_Era)
public long component9()
is a number of epoch milliseconds
public GMTDate copy(int seconds, int minutes, int hours, WeekDay dayOfWeek, int dayOfMonth, int dayOfYear, Month month, int year, long timestamp)
Date in GMT timezone
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)