Modifier and Type | Method and Description |
---|---|
static GregorianCalendar |
fromString(String datetime)
Converts a CMISQL date string representation to a
GregorianCalendar . |
static String |
toString(Calendar cal)
Converts a Calendar to its CMISQL string representation.
|
static void |
toString(Calendar cal,
StringBuilder buf)
Converts a Calendar to its CMISQL string representation.
|
public static GregorianCalendar fromString(String datetime)
GregorianCalendar
.
Parses YYYY-HH-MMThh:mm:ss.sss+hh:mm
, or a Z
for the
timezone, and with .sss
being optional.
datetime
- the string representation in CMISQL formatpublic static String toString(Calendar cal)
cal
- a Calendar
public static void toString(Calendar cal, StringBuilder buf)
cal
- a Calendar
buf
- a buffer in which to add the CMISQL string representationCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.