All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.util.FormattedDate

java.lang.Object
   |
   +----sun.server.util.FormattedDate

public class FormattedDate
extends Object

Variable Index

 o days
 o months

Constructor Index

 o FormattedDate()

Method Index

 o getTime()
Get the current time in milliseconds.
 o getTime(DateRep)
Get the current time in milliseconds.
 o setTime(long)
Set the current time to be ms.

Variables

 o days
  protected final static byte days[][]
 o months
  protected final static byte months[][]

Constructors

 o FormattedDate
  public FormattedDate()

Methods

 o setTime
  public static synchronized void setTime(long ms)
Set the current time to be ms.

Parameters:
ms - time in milliseconds since the epoch
 o getTime
  public static synchronized long getTime()
Get the current time in milliseconds.

Returns:
current time in ms since epoch, as updated by TimeManager
 o getTime
  public static synchronized void getTime(DateRep dr)
Get the current time in milliseconds. Places the current time in the dr parameter

Parameters:
dr - the place to put the decomposed current time

All Packages  Class Hierarchy  This Package  Previous  Next  Index