public final class DateTime extends Object implements Comparable<DateTime>, Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DateTime other) |
static DateTime |
copyFrom(Calendar calendar) |
static DateTime |
copyFrom(Date date) |
boolean |
equals(Object obj) |
long |
getTimestampMicroseconds()
Returns the value of this timestamp in microseconds.
|
long |
getTimestampMillis()
Returns the value of this timestamp in milliseconds.
|
int |
hashCode() |
static DateTime |
now() |
long |
timestampMicroseconds()
Deprecated.
|
long |
timestampMillis()
Deprecated.
|
Calendar |
toCalendar() |
Date |
toDate() |
String |
toString() |
public int compareTo(DateTime other)
compareTo in interface Comparable<DateTime>@Deprecated public long timestampMicroseconds()
public long getTimestampMicroseconds()
@Deprecated public long timestampMillis()
public long getTimestampMillis()
public Date toDate()
public Calendar toCalendar()
public static DateTime now()
Copyright © 2016 Google. All rights reserved.