Class Time
- java.lang.Object
-
- org.smooks.engine.bean.context.preinstalled.Time
-
public class Time extends Object
Pre-installed Time bean. Installed under beanId "PTIME".- Author:
- tom.fennelly@gmail.com
-
-
Constructor Summary
Constructors Constructor Description Time()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getNowDate()
Get the current time as aDate
.long
getNowMillis()
Get the current time in milli seconds.long
getNowNanos()
Get the current time in nano seconds.Date
getStartDate()
Get the Execution Context "start" time as aDate
.long
getStartMillis()
Get the Execution Context "start" time in milli seconds.long
getStartNanos()
Get the Execution Context "start" time in nano seconds.String
toString()
-
-
-
Field Detail
-
BEAN_ID
public static final String BEAN_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStartMillis
public long getStartMillis()
Get the Execution Context "start" time in milli seconds. This is the time at which the message processing started.- Returns:
- The Execution Context "start" time in milli seconds.
-
getStartNanos
public long getStartNanos()
Get the Execution Context "start" time in nano seconds. This is the time at which the message processing started.- Returns:
- The Execution Context "start" time in nano seconds.
-
getStartDate
public Date getStartDate()
Get the Execution Context "start" time as aDate
. This is the time at which the message processing started.- Returns:
- The Execution Context "start" time as a
Date
.
-
getNowMillis
public long getNowMillis()
Get the current time in milli seconds.- Returns:
- The current time in milli seconds.
-
getNowNanos
public long getNowNanos()
Get the current time in nano seconds.- Returns:
- The current time in nano seconds.
-
getNowDate
public Date getNowDate()
Get the current time as aDate
.- Returns:
- The current time as a
Date
.
-
-