org.eclipse.cosmos.dc.sample.components.sink.cbe.wrapper
Class CBEUtil
java.lang.Object
org.eclipse.cosmos.dc.sample.components.sink.cbe.wrapper.CBEUtil
public class CBEUtil
- extends java.lang.Object
|
Method Summary |
static short |
getDeltaTimeZoneInMinutesFromCIMFormat(java.lang.String creationTime)
Returns the signed time zone offset from GMT or Zulu time in minutes of the parameter XML schema dateTime datatype time stamp. |
static double |
getMicrosecondsFromCIMFormat(java.lang.String creationTime)
Returns the microsecond representation of the parameter XML schema dateTime datatype time stamp,
adjusted for the local time zone. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
partialCIMDateFormatDashDelimiter
public static java.text.SimpleDateFormat partialCIMDateFormatDashDelimiter
partialCIMDateFormatPlusDelimiter
public static java.text.SimpleDateFormat partialCIMDateFormatPlusDelimiter
partialCIMDateFormatNoDelimiter
public static java.text.SimpleDateFormat partialCIMDateFormatNoDelimiter
CBEUtil
public CBEUtil()
getMicrosecondsFromCIMFormat
public static double getMicrosecondsFromCIMFormat(java.lang.String creationTime)
throws java.lang.IllegalArgumentException
- Returns the microsecond representation of the parameter XML schema dateTime datatype time stamp,
adjusted for the local time zone.
Assumption: The caller is responsible for removing any leading and/or trailing whitespace.
- Parameters:
creationTime - XML schema dateTime datatype time stamp.
- Returns:
- double Microsecond representation of the parameter XML schema dateTime datatype time stamp.
- Throws:
java.lang.IllegalArgumentException - The parameter time stamp is not a valid XML schema dateTime datatype.
getDeltaTimeZoneInMinutesFromCIMFormat
public static short getDeltaTimeZoneInMinutesFromCIMFormat(java.lang.String creationTime)
throws java.lang.IllegalArgumentException
- Returns the signed time zone offset from GMT or Zulu time in minutes of the parameter XML schema dateTime datatype time stamp.
Assumption: The caller is responsible for removing any leading and/or trailing whitespace.
- Parameters:
creationTime - XML schema dateTime datatype time stamp.
- Returns:
- short Signed time zone offset from GMT in minutes.
- Throws:
java.lang.IllegalArgumentException - The parameter time stamp is not a valid XML schema dateTime datatype.