public class DateAndTime extends Combination
Constructor and Description |
---|
DateAndTime() |
Modifier and Type | Method and Description |
---|---|
String |
format(Object o)
formats an object along a certain pattern into a String
|
Day |
getDay() |
Hour |
getHour() |
Minute |
getMinute() |
Month |
getMonth() |
Second |
getSeconds() |
TimeZone |
getTimeZone() |
Year |
getYear() |
Object |
parse(String s)
converts a String with the help of a certain pattern
into a user-defined object
|
void |
setDay(Day day) |
void |
setHour(Hour hour) |
void |
setMinute(Minute minute) |
void |
setMonth(Month month) |
void |
setSecond(Second second) |
void |
setTimeZone(TimeZone timeZone) |
void |
setYear(Year year) |
String |
toString() |
getGroup, getPattern, setGroup, setPattern
public Year getYear()
public void setYear(Year year)
public Month getMonth()
public void setMonth(Month month)
public Day getDay()
public void setDay(Day day)
public Hour getHour()
public void setHour(Hour hour)
public Minute getMinute()
public void setMinute(Minute minute)
public Second getSeconds()
public void setSecond(Second second)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public Object parse(String s)
Parseable
public String format(Object o)
Formatable
o
- the object to formatCopyright © 2011–2019 52°North. All rights reserved.