Method Summary |
|
public int | get(DateTimeFieldType type) Get the value of one of the fields of a datetime. |
public int | getCenturyOfEra() Get the year of era field value. |
public int | getDayOfMonth() Get the day of month field value. |
public int | getDayOfWeek() Get the day of week field value. |
public int | getDayOfYear() Get the day of year field value. |
public int | getEra() Get the era field value. |
public int | getHourOfDay() Get the hour of day field value. |
public int | getMillisOfDay() Get the millis of day field value. |
public int | getMillisOfSecond() Get the millis of second field value. |
public int | getMinuteOfDay() Get the minute of day field value. |
public int | getMinuteOfHour() Get the minute of hour field value. |
public int | getMonthOfYear() Get the month of year field value. |
public int | getSecondOfDay() Get the second of day field value. |
public int | getSecondOfMinute() Get the second of minute field value. |
public int | getWeekOfWeekyear() Get the week of weekyear field value. |
public int | getWeekyear() Get the weekyear field value. |
public int | getYear() Get the year field value. |
public int | getYearOfCentury() Get the year of century field value. |
public int | getYearOfEra() Get the year of era field value. |
public Calendar | toCalendar(Locale locale) Get the date time as a java.util.Calendar , assigning
exactly the same millisecond instant.
The locale is passed in, enabling Calendar to select the correct
localized subclass.
The JDK and Joda-Time both have time zone implementations and these
differ in accuracy. |
public GregorianCalendar | toGregorianCalendar() Get the date time as a java.util.GregorianCalendar ,
assigning exactly the same millisecond instant.
The JDK and Joda-Time both have time zone implementations and these
differ in accuracy. |
public String | toString(String pattern) Output the instant using the specified format pattern. |
public String | toString(String pattern, Locale locale) Output the instant using the specified format pattern. |