|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Rememberall.DateUtils
public class DateUtils
Method Summary | |
---|---|
static boolean |
areSameDateMinuteGranICalendar(java.lang.String date1,
java.lang.String date2)
This function checks if two dates are the same down to a minute granularity |
static java.lang.String |
convertCalendarToICalendar(java.util.Calendar date)
This function converts a java.util.Calendar into a String representation of the date in iCalendar format |
static java.util.Calendar |
convertICalendarToCalendar(java.lang.String s)
This function convertes a String representation of the date in iCalendar format into a Calendar object |
static java.lang.String |
convertICalendarToReadable(java.lang.String s)
This function takes a String representation of the date in the format yyyymmddThhmmss and converts it to a more readable format |
static java.util.Calendar |
getCurrentDate()
This returns the current date. |
static java.lang.String |
getCurrentDateStringICalendarFormat()
This function gets the current date in a specialized string format that iCalendar uses |
static int |
getMinutesFromICalendar(java.lang.String s)
This function retrieves the number of minutes from an iCalendar date |
static void |
roundCalendarToGran(java.util.Calendar date,
int granInSeconds)
This rounds down the date in a Calendar object to the nearest multiple of the specified number of seconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Calendar getCurrentDate()
public static java.lang.String getCurrentDateStringICalendarFormat()
public static java.lang.String convertCalendarToICalendar(java.util.Calendar date)
date
- The date to be converted
public static java.lang.String convertICalendarToReadable(java.lang.String s)
s
- The string to convert
public static java.util.Calendar convertICalendarToCalendar(java.lang.String s)
s
- The String to be converted.
public static int getMinutesFromICalendar(java.lang.String s)
s
- The date to get the minutes from
public static boolean areSameDateMinuteGranICalendar(java.lang.String date1, java.lang.String date2)
date1
- The first datedate2
- The date to compare against the first date
public static void roundCalendarToGran(java.util.Calendar date, int granInSeconds)
date
- The date to roundgranInSeconds
- A number of seconds to round the date to a multiple of
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |