com.funambol.common.pim.model.model
Class ValueDateTime
java.lang.Object
com.funambol.common.pim.model.model.ValueDateTime
- All Implemented Interfaces:
- ValueInterface
public class ValueDateTime
- extends java.lang.Object
- implements ValueInterface
The date and time value type.
The purpose is to identify values that contain a calendar date.
Notation:
date-time = date "T" time ;As specified in the date and time
;value definitions
date = date-value
date-value = date-fullyear date-month date-mday
date-fullyear = 4DIGIT
date-month = 2DIGIT ;01-12
date-mday = 2DIGIT ;01-28, 01-29, 01-30, 01-31
;based on month/year
time = time-hour time-minute time-second [time-utc]
time-hour = 2DIGIT ;00-23
time-minute = 2DIGIT ;00-59
time-second = 2DIGIT ;00-60
;The "60" value is used to account for "leap" seconds.
time-utc = "Z"
- Version:
- $Id: ValueDateTime.java,v 1.2 2007-11-28 11:14:05 nichele Exp $
Field Summary |
static java.text.SimpleDateFormat |
fmtDayEnd
|
static java.text.SimpleDateFormat |
fmtDayStart
|
Method Summary |
boolean |
checkValue(java.lang.String v)
|
static boolean |
checkValue(java.lang.String v,
java.text.SimpleDateFormat fmt)
|
static java.lang.String |
FullDay(java.lang.String start,
java.lang.String end)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fmtDayStart
public static java.text.SimpleDateFormat fmtDayStart
fmtDayEnd
public static java.text.SimpleDateFormat fmtDayEnd
ValueDateTime
public ValueDateTime()
checkValue
public boolean checkValue(java.lang.String v)
- Specified by:
checkValue
in interface ValueInterface
checkValue
public static boolean checkValue(java.lang.String v,
java.text.SimpleDateFormat fmt)
FullDay
public static java.lang.String FullDay(java.lang.String start,
java.lang.String end)
Copyright © 2001-2009 Funambol.