Package com.flir.thermalsdk.live.remote
Class LocalDateTime
java.lang.Object
com.flir.thermalsdk.live.remote.LocalDateTime
A wrapper for a local date and time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intA number from 1 to 31.final intA number from 0 to 23.final intA number from 0 to 59.final intA number from 1 to 12, where 1 stands for January and 12 for December.final intA number from 0 to 59.final intA positive number, e.g. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static LocalDateTimeof(int year, int month, int dayOfMonth, int hourOfDay, int minute) Creates aLocalDateTimewrapper from the given date and time.static LocalDateTimeof(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second) Creates aLocalDateTimewrapper from the given date and time.static LocalDateTimeof(long millisSinceEpoch) Creates aLocalDateTimewrapper from the given milliseconds since Unix EPOCH.toString()
-
Field Details
-
year
@Expose public final int yearA positive number, e.g. 2020. -
month
@Expose public final int monthA number from 1 to 12, where 1 stands for January and 12 for December. -
day
@Expose public final int dayA number from 1 to 31. -
hour
@Expose public final int hourA number from 0 to 23. -
minute
@Expose public final int minuteA number from 0 to 59. -
second
@Expose public final int secondA number from 0 to 59.
-
-
Method Details
-
of
Creates aLocalDateTimewrapper 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
LocalDateTimeinstance.
-
of
public static LocalDateTime of(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second) Creates aLocalDateTimewrapper 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
LocalDateTimeinstance.
-
of
Creates aLocalDateTimewrapper from the given milliseconds since Unix EPOCH.- Parameters:
millisSinceEpoch- milliseconds since Unix EPOCH- Returns:
- Returns a
LocalDateTimeinstance.
-
equals
-
hashCode
public int hashCode() -
toString
-