Class TimestampUtil
- java.lang.Object
 - 
- org.linuxforhealth.fhir.persistence.util.TimestampUtil
 
 
- 
public class TimestampUtil extends java.lang.ObjectUtility 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 TimestampUtilcreate()Create a new utility instance, so each thread can get its ownjava.lang.Stringformat(java.util.Date tstamp)Format the tstamp into our ISO8601 standardjava.util.DategetTimestamp(java.lang.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 java.util.Date getTimestamp(java.lang.String str)
Parse the date string- Parameters:
 str-- Returns:
 - the parsed date string
 - Throws:
 ReplicatorException- for an error
 
- 
format
public java.lang.String format(java.util.Date tstamp)
Format the tstamp into our ISO8601 standard- Parameters:
 tstamp-- Returns:
 
 
 - 
 
 -