Package org.eblocker.server.common.data
Class LocalTimestamp
java.lang.Object
org.eblocker.server.common.data.LocalTimestamp
A small wrapper for converting an Instant to a JSON object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDay()The day of the local timeintThe day of the week, from 1 (Monday) to 7 (Sunday)intgetHour()The hour of the local timejava.time.InstantintThe minute of the local timeintgetMonth()The month of the local timeintThe second of the local timeintgetYear()The year of the local time
-
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()
-