public class PiwikDate extends Date
yyyy-MM-dd hh:mm:ss.| Constructor and Description |
|---|
PiwikDate()
Allocates a Date object and initializes it so that it represents the time
at which it was allocated, measured to the nearest millisecond.
|
PiwikDate(long date)
Allocates a Date object and initializes it to represent the specified number
of milliseconds since the standard base time known as "the epoch", namely
January 1, 1970, 00:00:00 GMT.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setTimeZone(TimeZone zone)
Sets the time zone of the String that will be returned by
toString(). |
String |
toString()
Converts this PiwikDate object to a String of the form:
yyyy-MM-dd hh:mm:ss. |
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTCpublic PiwikDate()
public PiwikDate(long date)
date - the milliseconds since January 1, 1970, 00:00:00 GMT.public void setTimeZone(TimeZone zone)
toString().
Defaults to UTC.zone - the TimeZone to setCopyright © 2016. All rights reserved.