org.broadleafcommerce.common.time
Class SystemTime

java.lang.Object
  extended by org.broadleafcommerce.common.time.SystemTime

public class SystemTime
extends Object


Constructor Summary
SystemTime()
           
 
Method Summary
static Calendar asCalendar()
           
static Calendar asCalendar(boolean includeTime)
           
static Calendar asCalendar(Locale locale)
           
static Calendar asCalendar(Locale locale, TimeZone timeZone, boolean includeTime)
           
static Calendar asCalendar(TimeZone timeZone)
           
static Date asDate()
           
static Date asDate(boolean includeTime)
           
static long asMillis()
           
static long asMillis(boolean includeTime)
           
static void reset()
           
static void resetGlobalTimeSource()
           
static void resetLocalTimeSource()
           
static void setGlobalTimeSource(TimeSource globalTS)
           
static void setLocalTimeSource(TimeSource localTS)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemTime

public SystemTime()
Method Detail

setGlobalTimeSource

public static void setGlobalTimeSource(TimeSource globalTS)

resetGlobalTimeSource

public static void resetGlobalTimeSource()

setLocalTimeSource

public static void setLocalTimeSource(TimeSource localTS)

resetLocalTimeSource

public static void resetLocalTimeSource()

reset

public static void reset()

asMillis

public static long asMillis()

asMillis

public static long asMillis(boolean includeTime)

asDate

public static Date asDate()

asDate

public static Date asDate(boolean includeTime)

asCalendar

public static Calendar asCalendar()

asCalendar

public static Calendar asCalendar(boolean includeTime)

asCalendar

public static Calendar asCalendar(Locale locale)

asCalendar

public static Calendar asCalendar(TimeZone timeZone)

asCalendar

public static Calendar asCalendar(Locale locale,
                                  TimeZone timeZone,
                                  boolean includeTime)


Copyright © 2012. All Rights Reserved.