Package org.matomo.java.tracking
Class MatomoDate
java.lang.Object
org.matomo.java.tracking.MatomoDate
- Direct Known Subclasses:
PiwikDate
Deprecated.
A datetime object that will return the datetime in the format
yyyy-MM-dd hh:mm:ss
.- Author:
- brettcsorba
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getTime()
Deprecated.Converts this datetime to the number of milliseconds from the epoch of 1970-01-01T00:00:00Z.Deprecated.void
setTimeZone
(ZoneId zone) Deprecated.Sets the time zone of the String that will be returned byObject.toString()
.
-
Constructor Details
-
MatomoDate
Deprecated.Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond. -
MatomoDate
Deprecated.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.- Parameters:
epochMilli
- the milliseconds since January 1, 1970, 00:00:00 GMT.
-
-
Method Details
-
setTimeZone
Deprecated.Sets the time zone of the String that will be returned byObject.toString()
. Defaults to UTC.- Parameters:
zone
- the TimeZone to set
-
getTime
public long getTime()Deprecated.Converts this datetime to the number of milliseconds from the epoch of 1970-01-01T00:00:00Z.- Returns:
- the number of milliseconds since the epoch of 1970-01-01T00:00:00Z
- Throws:
ArithmeticException
- if numeric overflow occurs
-
getZonedDateTime
Deprecated.
-
Instant