Package com.evopdf

# Class DateAndTime

java.lang.Object
com.evopdf.DateAndTime

public class DateAndTime extends Object
Encapsulates the date and time

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final DateAndTime`
  `EMPTY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DateAndTime(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 Type
  Method
  Description
  `int`
  `day()`
  Gets the day
  `int`
  `hour()`
  Gets the hour
  `int`
  `min()`
  Gets the minute
  `int`
  `month()`
  Gets the month
  `int`
  `sec()`
  Gets the second
  `void`
  `setDay(int day)`
  Sets the day
  `void`
  `setHour(int hour)`
  Sets the hour
  `void`
  `setMin(int min)`
  Sets the minute
  `void`
  `setMonth(int month)`
  Sets the month
  `void`
  `setSec(int sec)`
  Sets the second
  `void`
  `setYear(int year)`
  Sets the year
  `int`
  `year()`
  Gets the year

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### EMPTY

    public static final DateAndTime 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 year
      `month` - the month
      `day` - the day
      `hour` - the hour
      `min` - the minute
      `sec` - 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