Package com.evopdf
Class DateAndTime
java.lang.Object
com.evopdf.DateAndTime
Encapsulates the date and time
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDateAndTime
(int year, int month, int day, int hour, int min, int sec) Constructs an object based on date and time components -
Method Summary
Modifier and TypeMethodDescriptionint
day()
Gets the dayint
hour()
Gets the hourint
min()
Gets the minuteint
month()
Gets the monthint
sec()
Gets the secondvoid
setDay
(int day) Sets the dayvoid
setHour
(int hour) Sets the hourvoid
setMin
(int min) Sets the minutevoid
setMonth
(int month) Sets the monthvoid
setSec
(int sec) Sets the secondvoid
setYear
(int year) Sets the yearint
year()
Gets the year
-
Field Details
-
EMPTY
-
-
Constructor Details
-
DateAndTime
public DateAndTime(int year, int month, int day, int hour, int min, int sec) Constructs an object based on date and time components- Parameters:
year
- the yearmonth
- the monthday
- the dayhour
- the hourmin
- the minutesec
- the second
-
-
Method Details
-
year
public int year()Gets the year- Returns:
- the year
-
setYear
public void setYear(int year) Sets the year- Parameters:
year
- the year to set
-
month
public int month()Gets the month- Returns:
- the month
-
setMonth
public void setMonth(int month) Sets the month- Parameters:
month
- the month to set
-
day
public int day()Gets the day- Returns:
- the day
-
setDay
public void setDay(int day) Sets the day- Parameters:
day
- the day to set
-
hour
public int hour()Gets the hour- Returns:
- the hour
-
setHour
public void setHour(int hour) Sets the hour- Parameters:
hour
- the hour to set
-
min
public int min()Gets the minute- Returns:
- the minute
-
setMin
public void setMin(int min) Sets the minute- Parameters:
min
- the minute to set
-
sec
public int sec()Gets the second- Returns:
- the second
-
setSec
public void setSec(int sec) Sets the second- Parameters:
sec
- the second to set
-