Class DefaultSystemTime
- java.lang.Object
-
- org.certificateservices.messages.utils.DefaultSystemTime
-
- All Implemented Interfaces:
SystemTime
public class DefaultSystemTime extends java.lang.Object implements SystemTime
Default implementation of SystemTime that gets the system time from System.currentTimeMillis()
-
-
Constructor Summary
Constructors Constructor Description DefaultSystemTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetSystemTime()Default implementation of SystemTime that gets the system time from System.currentTimeMillis()longgetSystemTimeMS()Default implementation of SystemTime that gets the system time from System.currentTimeMillis()
-
-
-
Method Detail
-
getSystemTime
public java.util.Date getSystemTime()
Default implementation of SystemTime that gets the system time from System.currentTimeMillis()- Specified by:
getSystemTimein interfaceSystemTime- Returns:
- current system time in milliseconds in date format.
- See Also:
SystemTime.getSystemTime()
-
getSystemTimeMS
public long getSystemTimeMS()
Default implementation of SystemTime that gets the system time from System.currentTimeMillis()- Specified by:
getSystemTimeMSin interfaceSystemTime- Returns:
- current system time in milliseconds.
- See Also:
SystemTime.getSystemTimeMS()
-
-