Class LocalTimestamp

java.lang.Object
org.eblocker.server.common.data.LocalTimestamp

public class LocalTimestamp extends Object
A small wrapper for converting an Instant to a JSON object
  • Constructor Details

    • LocalTimestamp

      public LocalTimestamp(java.time.Instant instant)
  • Method Details

    • getYear

      public int getYear()
      The year of the local time
    • getMonth

      public int getMonth()
      The month of the local time
    • getDay

      public int getDay()
      The day of the local time
    • getDayOfWeek

      public int getDayOfWeek()
      The day of the week, from 1 (Monday) to 7 (Sunday)
    • getHour

      public int getHour()
      The hour of the local time
    • getMinute

      public int getMinute()
      The minute of the local time
    • getSecond

      public int getSecond()
      The second of the local time
    • getInstant

      public java.time.Instant getInstant()