Package com.ibm.fhir.persistence.util
Class TimestampUtil
- java.lang.Object
-
- com.ibm.fhir.persistence.util.TimestampUtil
-
public class TimestampUtil extends Object
Utility for parsing our UTC timestamp format.
-
-
Constructor Summary
Constructors Constructor Description TimestampUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimestampUtil
create()
Create a new utility instance, so each thread can get its ownString
format(Date tstamp)
Format the tstamp into our ISO8601 standardDate
getTimestamp(String str)
Parse the date string
-
-
-
Method Detail
-
create
public static TimestampUtil create()
Create a new utility instance, so each thread can get its own- Returns:
-
getTimestamp
public Date getTimestamp(String str)
Parse the date string- Parameters:
str
-- Returns:
- the parsed date string
- Throws:
ReplicatorException
- for an error
-
-