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 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 TypeMethodDescriptionboolean
int
hashCode()
static LocalDateTime
of
(int year, int month, int dayOfMonth, int hourOfDay, int minute) Creates aLocalDateTime
wrapper from the given date and time.static LocalDateTime
of
(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second) Creates aLocalDateTime
wrapper from the given date and time.static LocalDateTime
of
(long millisSinceEpoch) Creates aLocalDateTime
wrapper 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 aLocalDateTime
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 aLocalDateTime
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
Creates aLocalDateTime
wrapper from the given milliseconds since Unix EPOCH.- Parameters:
millisSinceEpoch
- milliseconds since Unix EPOCH- Returns:
- Returns a
LocalDateTime
instance.
-
equals
-
hashCode
public int hashCode() -
toString
-