Package org.brijframework.util.casting
Class DateUtil
- java.lang.Object
-
- org.brijframework.util.casting.DateUtil
-
public abstract class DateUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDAY_UNITSstatic intMONTH_UNITSstatic intYEAR_UNITS
-
Constructor Summary
Constructors Constructor Description DateUtil()
-
Method Summary
-
-
-
Field Detail
-
DAY_UNITS
public static final int DAY_UNITS
- See Also:
- Constant Field Values
-
MONTH_UNITS
public static final int MONTH_UNITS
- See Also:
- Constant Field Values
-
YEAR_UNITS
public static final int YEAR_UNITS
- See Also:
- Constant Field Values
-
-
Method Detail
-
isLeap
public static int isLeap(int y)
-
dateValidate
public static boolean dateValidate(int d, int m, int y)
-
NumberOfDays
public static int NumberOfDays(int d, int m, int y)
-
dateDifference
public static long dateDifference(String inputString1, String inputString2, String format)
-
calenderForDate
public static Calendar calenderForDate(String date, String seperator, String format)
-
currentDate
public static Calendar currentDate(int offSet)
-
currentDate
public static Calendar currentDate()
-
currentSqlDate
public static Date currentSqlDate()
-
currentUtilDate
public static Date currentUtilDate()
-
calenderForDate
public static Calendar calenderForDate(int year, int month, int day)
-
calenderForDate
public static Calendar calenderForDate(int year, int month, int day, int min)
-
getTime
public static long getTime(Object obj)
-
getyyyyMMMddDateString
public static String getyyyyMMMddDateString()
-
getStandard1DateString
public static String getStandard1DateString()
-
getDateInAnotherFormat
public static String getDateInAnotherFormat(String dateString, String inputPattern, String outputPattern)
-
getDateInAnotherFormat
public static String getDateInAnotherFormat(String dateString, SimpleDateFormat inputDateFormat, SimpleDateFormat outputDateFormat)
-
getTodayBusiGC
public static GregorianCalendar getTodayBusiGC()
-
getTodayBusiCal
public static Calendar getTodayBusiCal()
-
getTodayBusiSqlDate
public static Date getTodayBusiSqlDate()
-
getFirstDayOfMonthGC
public static GregorianCalendar getFirstDayOfMonthGC()
-
getFirstDayOfMonthSqlDate
public static Date getFirstDayOfMonthSqlDate()
-
getFirstDayOfYearGC
public static GregorianCalendar getFirstDayOfYearGC()
-
getFirstDayOfYearSqlDate
public static Date getFirstDayOfYearSqlDate()
-
getBusiGcXDaysAwayFromToday
public static GregorianCalendar getBusiGcXDaysAwayFromToday(int noOfDaysAway)
-
getBusiCalXDaysAwayFromToday
public static Calendar getBusiCalXDaysAwayFromToday(int noOfDaysAway)
-
getBusiSqlDateXDaysAwayFromToday
public static Date getBusiSqlDateXDaysAwayFromToday(int noOfDaysAway)
-
getNextMidNightGC
public GregorianCalendar getNextMidNightGC(GregorianCalendar gc)
-
getNextHour
public static Calendar getNextHour()
-
getNextMinute
public static Calendar getNextMinute()
-
getNextDay
public static Calendar getNextDay()
-
getGCForPattern
public static GregorianCalendar getGCForPattern(String dateString, String pattern)
-
getDateStringForPattern
public static String getDateStringForPattern(GregorianCalendar gc, String pattern)
-
getOverLap
public static double getOverLap(GregorianCalendar startT1, GregorianCalendar endT1, GregorianCalendar startT2, GregorianCalendar endT2)
-
getOverLapInSeconds
public static long getOverLapInSeconds(Date startT1, Date endT1, Date startT2, Date endT2)
-
getOverlapInDays
public static int getOverlapInDays(Date startT1, Date endT1, Date startT2, Date endT2)
-
getOverLap
public static long getOverLap(long startT1, long endT1, long startT2, long endT2)
-
getOverLapInclEnds
public static long getOverLapInclEnds(long startT1, long endT1, long startT2, long endT2)
-
getPeriodInPieces
public static Vector getPeriodInPieces(GregorianCalendar startDate, GregorianCalendar endDate, int unitType, int noOfUnits)
-
getOverlap
public static int getOverlap(int startT1, int endT1, int startT2, int endT2)
-
-