|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.funambol.email.util.UtilityDate
public class UtilityDate
Utility class
| Field Summary | |
|---|---|
protected static com.funambol.framework.logging.FunambolLogger |
log
|
| Constructor Summary | |
|---|---|
UtilityDate()
|
|
| Method Summary | |
|---|---|
static java.util.Date |
getDateForTimeFilter(javax.mail.Message message,
java.util.Locale loc)
|
static java.util.Date |
getHeaderDate(javax.mail.Message message,
java.util.Locale loc)
Returns an origination date in UTC format |
static java.util.Date |
getHeaderReceived(javax.mail.Message message,
java.util.Locale loc)
|
static java.lang.String |
getNowPatch()
this is a fix for all strange date format; it returns the NOW value. |
static boolean |
isHeaderDateParsable(javax.mail.Message message)
Returns true if the date is parsable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static com.funambol.framework.logging.FunambolLogger log
| Constructor Detail |
|---|
public UtilityDate()
| Method Detail |
|---|
public static java.util.Date getHeaderDate(javax.mail.Message message,
java.util.Locale loc)
throws EntityException
Available Date Parser
pat_1: Exchange 2003 (eng): wed, 6 Oct 2005 09:46:47 +0200
pat_2: Exchange 2000 (eng): 6 Oct 2005 09:46:47 +0200
pat_3: BB client : Wed Dec 28 20:05:53 GMT 2005
pat_4: ?? : Wed Dec 28 20:05:53 2005
message - Messageloc - Locale
EntityException
public static java.util.Date getHeaderReceived(javax.mail.Message message,
java.util.Locale loc)
message - Message
public static boolean isHeaderDateParsable(javax.mail.Message message)
message - Message
public static java.util.Date getDateForTimeFilter(javax.mail.Message message,
java.util.Locale loc)
message - Message
public static java.lang.String getNowPatch()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||