| java.lang.Object util.DateResolver
DateResolver | public class DateResolver (Code) | | Does date resolution for single and ranges of dates as per our
format for filtering.
No, it doesnt yet take in full dates.
author: rahul kumar See Also: XXX |
DateResolver | public DateResolver()(Code) | | ctor/constructor.
|
EndDateString | public static String EndDateString(int unit, int period)(Code) | | |
NextDateString | public static String NextDateString(int unit, int period)(Code) | | |
StartDateString | public static String StartDateString(int unit, int period)(Code) | | |
formatDate | public static String formatDate(String s)(Code) | | valid formats for date
[:][dmy][+-](\d+)?[:]
d, m , y
d+1
m+1 next month
y+1 next year
:d+1
d+1:
:y-1
|
parseToDateString | public static String parseToDateString(String dcode)(Code) | | takes a user entered code such as "m+1" or "y-1" or "d+1" and
returns the date string for that.
|
toUnit | public static int toUnit(char c)(Code) | | |
|
|