Line 52... |
Line 52... |
52 |
public static final String OPERATION_FORMATDATEADVANCED = "formatDateAdvanced";
|
52 |
public static final String OPERATION_FORMATDATEADVANCED = "formatDateAdvanced";
|
53 |
public static final String OPERATION_PARSEDATE = "parseDate";
|
53 |
public static final String OPERATION_PARSEDATE = "parseDate";
|
54 |
public static final String OPERATION_PARSEDATEADVANCED = "parseDateAdvanced";
|
54 |
public static final String OPERATION_PARSEDATEADVANCED = "parseDateAdvanced";
|
55 |
public static final String OPERATION_DATETIMEDIFF = "dateTimeDiff";
|
55 |
public static final String OPERATION_DATETIMEDIFF = "dateTimeDiff";
|
56 |
public static final String OPERATION_DATETIMEDIFF2 = "dateTimeDiff2";
|
56 |
public static final String OPERATION_DATETIMEDIFF2 = "dateTimeDiff2";
|
- |
|
57 |
public static final String OPERATION_DATEADD = "dateAdd";
|
Line 57... |
Line 58... |
57 |
|
58 |
|
58 |
public static final String PARAM_TIMEZONE = "timezone";
|
59 |
public static final String PARAM_TIMEZONE = "timezone";
|
59 |
public static final String PARAM_DATETIME = "datetime";
|
60 |
public static final String PARAM_DATETIME = "datetime";
|
- |
|
61 |
public static final String PARAM_FORMAT = "format";
|
Line 60... |
Line 62... |
60 |
public static final String PARAM_FORMAT = "format";
|
62 |
public static final String PARAM_UNIT = "unit";
|
61 |
|
63 |
|
62 |
/**
|
64 |
/**
|
63 |
* Get current date and time.
|
65 |
* Get current date and time.
|
Line 140... |
Line 142... |
140 |
@WebMethod(operationName=OPERATION_DATETIMEDIFF2)
|
142 |
@WebMethod(operationName=OPERATION_DATETIMEDIFF2)
|
141 |
@WSDLDocumentation(value="Get elapsed time between to dates.")
|
143 |
@WSDLDocumentation(value="Get elapsed time between to dates.")
|
142 |
public abstract BigInteger dateTimeDiff2(
|
144 |
public abstract BigInteger dateTimeDiff2(
|
143 |
@WebParam(name="fromDateTime") @XmlElement(required=true) GregorianCalendar fromCal,
|
145 |
@WebParam(name="fromDateTime") @XmlElement(required=true) GregorianCalendar fromCal,
|
144 |
@WebParam(name="toDateTime") @XmlElement(required=true) GregorianCalendar toCal,
|
146 |
@WebParam(name="toDateTime") @XmlElement(required=true) GregorianCalendar toCal,
|
145 |
@WebParam(name="unit") DateTimeUnits unit) throws XServicesFault;
|
147 |
@WebParam(name="PARAM_UNIT") DateTimeUnits unit) throws XServicesFault;
|
- |
|
148 |
|
- |
|
149 |
/**
|
- |
|
150 |
* Add or substract a time span from a date.
|
- |
|
151 |
*
|
- |
|
152 |
* @param cal
|
- |
|
153 |
* @param unit
|
- |
|
154 |
* @return New date and time.
|
- |
|
155 |
* @throws XServicesFault
|
- |
|
156 |
*/
|
- |
|
157 |
@WebMethod(operationName=OPERATION_DATEADD)
|
- |
|
158 |
@WSDLDocumentation(value="Add or substract a time span from a date.")
|
- |
|
159 |
public abstract GregorianCalendar dateAdd(
|
- |
|
160 |
@WebParam(name=PARAM_DATETIME) @XmlElement(required=true) GregorianCalendar cal,
|
- |
|
161 |
@WebParam(name="value") @XmlElement(required=true) BigInteger value,
|
- |
|
162 |
@WebParam(name=PARAM_UNIT) @XmlElement(required=true) DateTimeUnits unit) throws XServicesFault;
|
- |
|
163 |
|
146 |
}
|
164 |
}
|