Class MatomoDate

java.lang.Object
org.matomo.java.tracking.MatomoDate
Direct Known Subclasses:
PiwikDate

@Deprecated public class MatomoDate extends Object
Deprecated.
Please use Instant
A datetime object that will return the datetime in the format yyyy-MM-dd hh:mm:ss.
Author:
brettcsorba
  • Constructor Details

    • MatomoDate

      @Deprecated public 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 public MatomoDate(long epochMilli)
      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

      public void setTimeZone(ZoneId zone)
      Deprecated.
      Sets the time zone of the String that will be returned by Object.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

      public ZonedDateTime getZonedDateTime()
      Deprecated.