public class Date extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
String |
bound |
static Pattern |
dateMonthPat |
static Pattern |
dateMonthYearPat |
int |
day |
boolean |
missing_day |
boolean |
missing_month |
boolean |
missing_year |
int |
month |
static String |
MONTH |
static Map<String,Integer> |
month2num |
static Pattern |
monthDatePat |
static Pattern |
monthDateYearPat |
static Pattern |
monthYearPat |
String |
phrase |
static Calendar |
presentDate |
static Pattern |
specialDayPat |
int |
year |
static Pattern |
yearMonthDatePat |
Constructor and Description |
---|
Date() |
Date(Integer year,
Integer month,
Integer day) |
Date(Integer year,
Integer month,
Integer day,
String bound) |
Modifier and Type | Method and Description |
---|---|
static Date |
dateMonthYear(String str) |
static Date |
extractDate(String phrase) |
static Date |
getDate(int yr,
int mth,
int day) |
static Date |
getRelativeDate(String units,
int n,
Date dt) |
static Integer |
handleTwoDigitYear(Integer x) |
static void |
initialize() |
static void |
main(String[] args) |
static Date |
monthDateYear(String str) |
String |
toString() |
static Date |
yearMonthDate(String str) |
public int month
public int day
public int year
public String phrase
public boolean missing_day
public boolean missing_month
public boolean missing_year
public String bound
public static String MONTH
public static Pattern yearMonthDatePat
public static Pattern dateMonthYearPat
public static Pattern monthDatePat
public static Pattern monthYearPat
public static Pattern specialDayPat
public static Pattern monthDateYearPat
public static Pattern dateMonthPat
public static Calendar presentDate
Copyright © 2017. All rights reserved.