public class VisalloDateTime extends Object implements Comparable<VisalloDateTime>
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_TIME_NO_TIME_ZONE_FORMAT |
| Constructor and Description |
|---|
VisalloDateTime(Integer year,
Integer month,
Integer date,
Integer hour,
Integer minutes,
Integer seconds,
Integer milliseconds,
String timeZone) |
VisalloDateTime(String year,
String month,
String date,
String hour,
String minutes,
String seconds,
String milliseconds,
String timeZone) |
VisalloDateTime(VisalloDate date,
VisalloTime time,
String timeZone) |
| Modifier and Type | Method and Description |
|---|---|
VisalloDateTime |
add(int amount,
VisalloDate.Unit units) |
int |
compareTo(VisalloDateTime o) |
static VisalloDateTime |
create(Date date,
String timeZoneString) |
static VisalloDateTime |
create(Date date,
TimeZone timeZone) |
static VisalloDateTime |
create(Object obj) |
static VisalloDateTime |
create(Object obj,
TimeZone defaultTimeZone) |
boolean |
equals(Object o) |
VisalloDate |
getDate() |
long |
getEpoch() |
static String |
getHumanTimeAgo(Date date) |
static String |
getHumanTimeAgo(Date now,
Date date) |
static String |
getHumanTimeAgo(long agoMillis) |
Date |
getJavaDate() |
VisalloTime |
getTime() |
String |
getTimeZone() |
int |
hashCode() |
static VisalloDateTime |
parse(String str,
TimeZone defaultTimeZone) |
Date |
toDate(TimeZone destTimeZone) |
Date |
toDateGMT() |
String |
toString() |
public static final String DATE_TIME_NO_TIME_ZONE_FORMAT
public VisalloDateTime(Integer year, Integer month, Integer date, Integer hour, Integer minutes, Integer seconds, Integer milliseconds, String timeZone)
public VisalloDateTime(String year, String month, String date, String hour, String minutes, String seconds, String milliseconds, String timeZone)
public VisalloDateTime(VisalloDate date, VisalloTime time, String timeZone)
public Date toDateGMT()
public long getEpoch()
public static VisalloDateTime create(Object obj)
public static VisalloDateTime create(Object obj, TimeZone defaultTimeZone)
public static VisalloDateTime create(Date date, String timeZoneString)
public static VisalloDateTime create(Date date, TimeZone timeZone)
public static VisalloDateTime parse(String str, TimeZone defaultTimeZone)
public VisalloTime getTime()
public VisalloDate getDate()
public String getTimeZone()
public Date getJavaDate()
public VisalloDateTime add(int amount, VisalloDate.Unit units)
public int compareTo(VisalloDateTime o)
compareTo in interface Comparable<VisalloDateTime>public static String getHumanTimeAgo(long agoMillis)
Copyright © 2013–2016 V5 Analytics. All rights reserved.