Package com.ibm.fhir.cql.helpers
Class DateHelper
- java.lang.Object
-
- com.ibm.fhir.cql.helpers.DateHelper
-
public class DateHelper extends java.lang.ObjectHelper logic for working with java.util.time objects and the CQL internal date and time types.
-
-
Constructor Summary
Constructors Constructor Description DateHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.time.LocalDateTimedateCeiling(java.time.temporal.TemporalAccessor ta)static java.time.LocalDateTimedateFloor(java.time.temporal.TemporalAccessor ta)protected static java.time.LocalDategetDateWithDefaults(java.time.temporal.TemporalAccessor ta, int defaultMonth, int defaultDay)static intlastDayOfMonth(int year, int month)static org.opencds.cqf.cql.engine.runtime.BaseTemporaltoCqlTemporal(java.time.temporal.TemporalAccessor ta)
-
-
-
Method Detail
-
dateFloor
public static java.time.LocalDateTime dateFloor(java.time.temporal.TemporalAccessor ta)
-
dateCeiling
public static java.time.LocalDateTime dateCeiling(java.time.temporal.TemporalAccessor ta)
-
getDateWithDefaults
protected static java.time.LocalDate getDateWithDefaults(java.time.temporal.TemporalAccessor ta, int defaultMonth, int defaultDay)
-
lastDayOfMonth
public static int lastDayOfMonth(int year, int month)
-
toCqlTemporal
public static org.opencds.cqf.cql.engine.runtime.BaseTemporal toCqlTemporal(java.time.temporal.TemporalAccessor ta)
-
-