Revision 44669 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.time/org.gvsig.expressionevaluator.time.lib/org.gvsig.expressionevaluator.time.lib.impl/src/main/java/org/gvsig/expressionevaluator/impl/function/date/RelativeIntervalFunction.java
RelativeIntervalFunction.java | ||
---|---|---|
1 | 1 |
package org.gvsig.expressionevaluator.impl.function.date; |
2 | 2 |
|
3 |
import java.text.ParseException; |
|
4 |
import java.text.SimpleDateFormat; |
|
5 |
import java.util.Date; |
|
6 | 3 |
import java.util.Objects; |
7 | 4 |
import org.apache.commons.lang3.Range; |
8 | 5 |
import org.gvsig.expressionevaluator.Interpreter; |
9 | 6 |
import org.gvsig.expressionevaluator.spi.AbstractFunction; |
10 | 7 |
import org.gvsig.timesupport.DataTypes; |
11 |
import org.gvsig.timesupport.Instant; |
|
12 | 8 |
import org.gvsig.timesupport.RelativeInstant; |
13 | 9 |
import org.gvsig.timesupport.RelativeInterval; |
14 | 10 |
import org.gvsig.timesupport.TimeSupportLocator; |
15 | 11 |
import org.gvsig.tools.ToolsLocator; |
12 |
import org.gvsig.tools.dataTypes.Coercion; |
|
16 | 13 |
import org.gvsig.tools.dataTypes.CoercionException; |
17 |
import org.gvsig.tools.dataTypes.DataTypesManager; |
|
18 | 14 |
|
19 | 15 |
public class RelativeIntervalFunction extends AbstractFunction { |
20 | 16 |
|
21 |
private final DataTypesManager.Coercion toInstant;
|
|
17 |
private final Coercion toInstant; |
|
22 | 18 |
|
23 | 19 |
public RelativeIntervalFunction() { |
24 | 20 |
super("Date", "RelativeInterval",Range.is(2), |
Also available in: Unified diff