Class LocalDateTime

java.lang.Object
com.flir.thermalsdk.live.remote.LocalDateTime

public class LocalDateTime extends Object
A wrapper for a local date and time.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    A number from 1 to 31.
    final int
    A number from 0 to 23.
    final int
    A number from 0 to 59.
    final int
    A number from 1 to 12, where 1 stands for January and 12 for December.
    final int
    A number from 0 to 59.
    final int
    A positive number, e.g.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    of(int year, int month, int dayOfMonth, int hourOfDay, int minute)
    Creates a LocalDateTime wrapper from the given date and time.
    of(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second)
    Creates a LocalDateTime wrapper from the given date and time.
    of(long millisSinceEpoch)
    Creates a LocalDateTime wrapper from the given milliseconds since Unix EPOCH.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • year

      @Expose public final int year
      A positive number, e.g. 2020.
    • month

      @Expose public final int month
      A number from 1 to 12, where 1 stands for January and 12 for December.
    • day

      @Expose public final int day
      A number from 1 to 31.
    • hour

      @Expose public final int hour
      A number from 0 to 23.
    • minute

      @Expose public final int minute
      A number from 0 to 59.
    • second

      @Expose public final int second
      A number from 0 to 59.
  • Method Details

    • of

      public static LocalDateTime of(int year, int month, int dayOfMonth, int hourOfDay, int minute)
      Creates a LocalDateTime wrapper from the given date and time.
      Parameters:
      year - A positive number, e.g. 2020.
      month - A number from 1 to 12, where 1 stands for January and 12 for December.
      dayOfMonth - A number from 1 to 31.
      hourOfDay - A number from 0 to 23.
      minute - A number from 0 to 59.
      Returns:
      Returns a LocalDateTime instance.
    • of

      public static LocalDateTime of(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second)
      Creates a LocalDateTime wrapper from the given date and time.
      Parameters:
      year - A positive number, e.g. 2020.
      month - A number from 1 to 12, where 1 stands for January and 12 for December.
      dayOfMonth - A number from 1 to 31.
      hourOfDay - A number from 0 to 23.
      minute - A number from 0 to 59.
      second - A number from 0 to 59.
      Returns:
      Returns a LocalDateTime instance.
    • of

      public static LocalDateTime of(long millisSinceEpoch)
      Creates a LocalDateTime wrapper from the given milliseconds since Unix EPOCH.
      Parameters:
      millisSinceEpoch - milliseconds since Unix EPOCH
      Returns:
      Returns a LocalDateTime instance.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object