public class JodaDateUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.joda.time.DateTimeZone |
PDT |
| Modifier and Type | Method and Description |
|---|---|
static org.joda.time.LocalDate |
currentDate() |
static org.joda.time.LocalDateTime |
currentDateTime() |
static org.joda.time.LocalTime |
currentTime() |
static boolean |
datesEqual(java.util.Date dateA,
java.util.Date dateB) |
static boolean |
datesNotEqual(java.util.Date dateA,
java.util.Date dateB) |
static org.joda.time.LocalDateTime |
midnightToday() |
static JodaDateUtilsFactory |
newFactory(org.joda.time.DateTimeZone timeZone) |
static org.joda.time.DateTime |
toDateTime(java.util.Calendar date) |
static org.joda.time.DateTime |
toDateTime(java.util.Date date) |
static org.joda.time.DateTime |
toDateTime(int year,
int monthOfYear,
int dayOfMonth) |
static org.joda.time.DateTime |
toDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour) |
static org.joda.time.DateTime |
toDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
static org.joda.time.DateTime |
toDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond) |
static org.joda.time.DateTime |
toDateTime(org.joda.time.LocalDate date) |
static org.joda.time.DateTime |
toDateTime(org.joda.time.LocalDateTime date) |
static org.joda.time.DateTime |
toDateTime(long date) |
static org.joda.time.DateTime |
toDateTime(java.lang.Object date) |
static org.joda.time.DateTime |
toDateTime(java.lang.String date) |
static org.joda.time.LocalDate |
toLocalDate(java.util.Calendar date) |
static org.joda.time.LocalDate |
toLocalDate(java.util.Date date) |
static org.joda.time.LocalDate |
toLocalDate(org.joda.time.DateTime date) |
static org.joda.time.LocalDate |
toLocalDate(int year,
int month,
int day) |
static org.joda.time.LocalDate |
toLocalDate(org.joda.time.LocalDateTime date) |
static org.joda.time.LocalDate |
toLocalDate(long date) |
static org.joda.time.LocalDate |
toLocalDate(java.lang.Object date) |
static org.joda.time.LocalDate |
toLocalDate(java.lang.String date) |
static org.joda.time.LocalDateTime |
toLocalDateTime(java.util.Calendar date) |
static org.joda.time.LocalDateTime |
toLocalDateTime(java.util.Date date) |
static org.joda.time.LocalDateTime |
toLocalDateTime(org.joda.time.DateTime date) |
static org.joda.time.LocalDateTime |
toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth) |
static org.joda.time.LocalDateTime |
toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour) |
static org.joda.time.LocalDateTime |
toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
static org.joda.time.LocalDateTime |
toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond) |
static org.joda.time.LocalDateTime |
toLocalDateTime(org.joda.time.LocalDate date) |
static org.joda.time.LocalDateTime |
toLocalDateTime(long date) |
static org.joda.time.LocalDateTime |
toLocalDateTime(java.lang.Object date) |
static org.joda.time.LocalDateTime |
toLocalDateTime(java.lang.String date) |
static org.joda.time.LocalTime |
toLocalTime(java.util.Calendar date) |
static org.joda.time.LocalTime |
toLocalTime(java.util.Date date) |
static org.joda.time.LocalTime |
toLocalTime(org.joda.time.DateTime date) |
static org.joda.time.LocalTime |
toLocalTime(int hourOfDay,
int minuteOfHour) |
static org.joda.time.LocalTime |
toLocalTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
static org.joda.time.LocalTime |
toLocalTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond) |
static org.joda.time.LocalTime |
toLocalTime(org.joda.time.LocalDateTime date) |
static org.joda.time.LocalTime |
toLocalTime(long date) |
static org.joda.time.LocalTime |
toLocalTime(java.lang.Object date) |
static org.joda.time.LocalTime |
toLocalTime(java.lang.String date) |
public static JodaDateUtilsFactory newFactory(org.joda.time.DateTimeZone timeZone)
public static org.joda.time.LocalTime currentTime()
public static org.joda.time.LocalDateTime currentDateTime()
public static org.joda.time.LocalDate currentDate()
public static org.joda.time.LocalDateTime midnightToday()
public static org.joda.time.LocalDate toLocalDate(java.lang.Object date)
public static org.joda.time.LocalDate toLocalDate(java.lang.String date)
public static org.joda.time.LocalDate toLocalDate(long date)
public static org.joda.time.LocalDate toLocalDate(java.util.Date date)
public static org.joda.time.LocalDate toLocalDate(java.util.Calendar date)
public static org.joda.time.LocalDate toLocalDate(org.joda.time.LocalDateTime date)
public static org.joda.time.LocalDate toLocalDate(org.joda.time.DateTime date)
public static org.joda.time.LocalDate toLocalDate(int year,
int month,
int day)
public static org.joda.time.LocalTime toLocalTime(java.lang.Object date)
public static org.joda.time.LocalTime toLocalTime(java.lang.String date)
public static org.joda.time.LocalTime toLocalTime(long date)
public static org.joda.time.LocalTime toLocalTime(java.util.Date date)
public static org.joda.time.LocalTime toLocalTime(java.util.Calendar date)
public static org.joda.time.LocalTime toLocalTime(org.joda.time.LocalDateTime date)
public static org.joda.time.LocalTime toLocalTime(org.joda.time.DateTime date)
public static org.joda.time.LocalTime toLocalTime(int hourOfDay,
int minuteOfHour)
public static org.joda.time.LocalTime toLocalTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute)
public static org.joda.time.LocalTime toLocalTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
public static org.joda.time.LocalDateTime toLocalDateTime(java.lang.Object date)
public static org.joda.time.LocalDateTime toLocalDateTime(java.lang.String date)
public static org.joda.time.LocalDateTime toLocalDateTime(long date)
public static org.joda.time.LocalDateTime toLocalDateTime(java.util.Date date)
public static org.joda.time.LocalDateTime toLocalDateTime(java.util.Calendar date)
public static org.joda.time.LocalDateTime toLocalDateTime(org.joda.time.LocalDate date)
public static org.joda.time.LocalDateTime toLocalDateTime(org.joda.time.DateTime date)
public static org.joda.time.LocalDateTime toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth)
public static org.joda.time.LocalDateTime toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour)
public static org.joda.time.LocalDateTime toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute)
public static org.joda.time.LocalDateTime toLocalDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
public static org.joda.time.DateTime toDateTime(java.lang.Object date)
public static org.joda.time.DateTime toDateTime(java.lang.String date)
public static org.joda.time.DateTime toDateTime(long date)
public static org.joda.time.DateTime toDateTime(org.joda.time.LocalDate date)
public static org.joda.time.DateTime toDateTime(org.joda.time.LocalDateTime date)
public static org.joda.time.DateTime toDateTime(java.util.Date date)
public static org.joda.time.DateTime toDateTime(java.util.Calendar date)
public static org.joda.time.DateTime toDateTime(int year,
int monthOfYear,
int dayOfMonth)
public static org.joda.time.DateTime toDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour)
public static org.joda.time.DateTime toDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute)
public static org.joda.time.DateTime toDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
public static boolean datesEqual(java.util.Date dateA,
java.util.Date dateB)
public static boolean datesNotEqual(java.util.Date dateA,
java.util.Date dateB)