quickfix
Class SystemTime

java.lang.Object
  extended by quickfix.SystemTime

public class SystemTime
extends java.lang.Object

A wrapper for the system time source, used primarily for unit testing.


Field Summary
static java.util.TimeZone UTC_TIMEZONE
           
 
Constructor Summary
SystemTime()
           
 
Method Summary
static long currentTimeMillis()
           
static java.util.Date getDate()
           
static java.util.Calendar getUtcCalendar()
           
static java.util.Calendar getUtcCalendar(java.util.Date date)
           
static void setTimeSource(SystemTimeSource systemTimeSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTC_TIMEZONE

public static final java.util.TimeZone UTC_TIMEZONE
Constructor Detail

SystemTime

public SystemTime()
Method Detail

currentTimeMillis

public static long currentTimeMillis()

getDate

public static java.util.Date getDate()

setTimeSource

public static void setTimeSource(SystemTimeSource systemTimeSource)

getUtcCalendar

public static java.util.Calendar getUtcCalendar()

getUtcCalendar

public static java.util.Calendar getUtcCalendar(java.util.Date date)