Package org.hl7.fhir.utilities
Class DateTimeUtil
- java.lang.Object
-
- org.hl7.fhir.utilities.DateTimeUtil
-
public class DateTimeUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description DateTimeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntegergetDatePrecision(String value)static IntegergetTimePrecision(String value)static StringhighBoundaryForDate(String value, int precision)static StringhighBoundaryForTime(String value, int precision)static StringlowBoundaryForDate(String value, int precision)static StringlowBoundaryForTime(String value, int precision)static StringtoHumanDisplay(Locale locale, TimeZone theTimeZone, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision, Date theValue)static StringtoHumanDisplay(TimeZone theTimeZone, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision, Date theValue, String theValueAsString)static StringtoHumanDisplayLocalTimezone(ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision, Date theValue, String theValueAsString)
-
-
-
Constructor Detail
-
DateTimeUtil
public DateTimeUtil()
-
-
Method Detail
-
toHumanDisplay
public static String toHumanDisplay(TimeZone theTimeZone, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision, Date theValue, String theValueAsString)
-
toHumanDisplayLocalTimezone
public static String toHumanDisplayLocalTimezone(ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision, Date theValue, String theValueAsString)
-
toHumanDisplay
public static String toHumanDisplay(Locale locale, TimeZone theTimeZone, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision, Date theValue)
-
lowBoundaryForDate
public static String lowBoundaryForDate(String value, int precision)
-
lowBoundaryForTime
public static String lowBoundaryForTime(String value, int precision)
-
highBoundaryForTime
public static String highBoundaryForTime(String value, int precision)
-
highBoundaryForDate
public static String highBoundaryForDate(String value, int precision)
-
getDatePrecision
public static Integer getDatePrecision(String value)
-
getTimePrecision
public static Integer getTimePrecision(String value)
-
-