public class CommonLogging
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.text.FieldPosition |
fieldPos
Field position to use with the date formatter.
|
Constructor and Description |
---|
CommonLogging() |
Modifier and Type | Method and Description |
---|---|
static java.util.Calendar |
createStartDate()
Returns a new Calendar object set to 'now'.
|
protected long |
getDuration(java.util.Calendar startDate)
Returns the duration, in milliseconds, since the given date/time value and
now.
|
protected long |
getDuration(java.util.Calendar aStartDate,
java.util.Calendar aEndDate)
Returns the duration, in milliseconds, since the given start date/time value
and given end date/time.
|
protected long |
getDuration(long aStartTime,
long aEndTime)
Returns the duration, in milliseconds, since the given start date/time value
and given end date/time.
|
protected java.text.FieldPosition fieldPos
public static java.util.Calendar createStartDate()
protected long getDuration(java.util.Calendar startDate)
startDate
- the date/time at which the duration started.protected long getDuration(java.util.Calendar aStartDate, java.util.Calendar aEndDate)
aStartDate
- the date/time at which the duration started.aEndDate
- the date/time at which the duration ended.protected long getDuration(long aStartTime, long aEndTime)
aStartDate
- the date/time at which the duration started.aEndDate
- the date/time at which the duration ended.Copyright © 2018 Cloud Software Group, Inc. All Rights Reserved.