public class DateVariant extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DateVariant.DateOffset |
static class |
DateVariant.DateUnit |
| Constructor and Description |
|---|
DateVariant(org.joda.time.DateTime date) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(DateVariant other) |
static DateVariant |
from(org.joda.time.DateTime date) |
static DateVariant |
from(String dateString) |
static DateVariant |
from(String dateIn,
DateFormatInternal.IDateFormat format) |
org.joda.time.DateTime |
getDate() |
int |
getDay() |
String |
getMonthName() |
String |
getOriginalDateString() |
DateTypeInternal.IDateType |
getType() |
int |
getYear() |
boolean |
isAfter(DateVariant other) |
boolean |
isBefore(DateVariant other) |
boolean |
isSameDay(DateVariant other) |
boolean |
isType(DateTypeInternal.IDateType type) |
DateVariant |
offsetBy(DateVariant.DateUnit dateUnit,
DateVariant.DateOffset dateOffset,
int days) |
static DateVariant |
today() |
static DateVariant |
todayOffsetBy(DateVariant.DateUnit dateUnit,
DateVariant.DateOffset dateOffset,
int multiplier) |
String |
toString(DateFormatInternal.IDateFormat format) |
public static DateVariant today()
public static DateVariant todayOffsetBy(DateVariant.DateUnit dateUnit, DateVariant.DateOffset dateOffset, int multiplier)
public static DateVariant from(String dateIn, DateFormatInternal.IDateFormat format)
public static DateVariant from(String dateString)
public static DateVariant from(org.joda.time.DateTime date)
public org.joda.time.DateTime getDate()
public String getOriginalDateString()
public DateTypeInternal.IDateType getType()
public boolean compare(DateVariant other)
public String toString(DateFormatInternal.IDateFormat format)
public boolean isAfter(DateVariant other)
public boolean isBefore(DateVariant other)
public boolean isSameDay(DateVariant other)
public boolean isType(DateTypeInternal.IDateType type)
public DateVariant offsetBy(DateVariant.DateUnit dateUnit, DateVariant.DateOffset dateOffset, int days)
public int getYear()
public int getDay()
public String getMonthName()
Copyright © 2016. All rights reserved.