Class DateHelper
- java.lang.Object
-
- org.linuxforhealth.fhir.cql.helpers.DateHelper
-
public class DateHelper extends java.lang.Object
Helper 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.LocalDateTime
dateCeiling(java.time.temporal.TemporalAccessor ta)
static java.time.LocalDateTime
dateFloor(java.time.temporal.TemporalAccessor ta)
protected static java.time.LocalDate
getDateWithDefaults(java.time.temporal.TemporalAccessor ta, int defaultMonth, int defaultDay)
static int
lastDayOfMonth(int year, int month)
static org.opencds.cqf.cql.engine.runtime.BaseTemporal
toCqlTemporal(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)
-
-