| java.lang.Object jodd.datetime.DateTimeStamp
Constructor Summary | |
public | DateTimeStamp() Default empty constructor. | public | DateTimeStamp(int year, int month, int day, int hour, int minute, double second) Constructor that sets date and time. | public | DateTimeStamp(int year, int month, int day) Constructor that sets just date. |
day | public int day(Code) | | Day, range: [1 - 31]
|
hour | public int hour(Code) | | Hour, range: [0 - 23]
|
minute | public int minute(Code) | | Minute, range [0 - 59]
|
month | public int month(Code) | | Month, range: [1 - 12]
|
second | public double second(Code) | | Second, range: [0.000 - 59.999]
|
year | public int year(Code) | | Year.
|
DateTimeStamp | public DateTimeStamp()(Code) | | Default empty constructor.
|
DateTimeStamp | public DateTimeStamp(int year, int month, int day, int hour, int minute, double second)(Code) | | Constructor that sets date and time.
|
DateTimeStamp | public DateTimeStamp(int year, int month, int day)(Code) | | Constructor that sets just date. Time is set to zeros.
|
compareTo | public int compareTo(Object o)(Code) | | Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is less
than, equal to, or greater than the specified object.
Parameters: o - the Object to be compared. a negative integer, zero, or a positive integer as this objectis less than, equal to, or greater than the specified object. throws: ClassCastException - if the specified object's type prevents itfrom being compared to this Object. |
getDay | public int getDay()(Code) | | |
getHour | public int getHour()(Code) | | |
getMinute | public int getMinute()(Code) | | |
getMonth | public int getMonth()(Code) | | |
getSecond | public double getSecond()(Code) | | |
getYear | public int getYear()(Code) | | |
hashCode | public int hashCode()(Code) | | |
setDay | public void setDay(int day)(Code) | | |
setHour | public void setHour(int hour)(Code) | | |
setMinute | public void setMinute(int minute)(Code) | | |
setMonth | public void setMonth(int month)(Code) | | |
setSecond | public void setSecond(double second)(Code) | | |
setYear | public void setYear(int year)(Code) | | |
toString | public String toString()(Code) | | Simple to string conversion.
date/time string in 'y-m-d h:m:m.s' format |
|
|