org.openmms.util
Class TimeStamp_ID

java.lang.Object
  |
  +--org.openmms.util.TimeStamp_ID

public class TimeStamp_ID
extends java.lang.Object

Title: TimeStamp_ID

Description: Generates a unique ID and a TimeStamp for an MM

Copyright: Copyright (c) 2003 OpenMMS.org


Constructor Summary
TimeStamp_ID()
          Constructor which creates a new TimeStamp_ID
 
Method Summary
static java.lang.String createAbsDate()
          Creates a new absolute date instance based on the given format
static java.lang.String createAbsTS_Long()
          Creates a new absolute date instance based on the given format
static java.lang.String createID()
          Generates a unique ID combining the TimeStamp with a randomly generated number
static java.lang.String createTS()
          Generates a new TimeStamp as the time in seconds from 1/1/1970
static java.lang.String getID()
          Returns the generated ID
static java.lang.String getTimeStamp()
          Returns the TimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStamp_ID

public TimeStamp_ID()
Constructor which creates a new TimeStamp_ID

Method Detail

getTimeStamp

public static java.lang.String getTimeStamp()
Returns the TimeStamp

Returns:
String

createTS

public static java.lang.String createTS()
Generates a new TimeStamp as the time in seconds from 1/1/1970

Returns:
time

createID

public static java.lang.String createID()
Generates a unique ID combining the TimeStamp with a randomly generated number

Returns:
string ID

getID

public static java.lang.String getID()
Returns the generated ID

Returns:
string ID

createAbsDate

public static java.lang.String createAbsDate()
Creates a new absolute date instance based on the given format

Returns:
date as string

createAbsTS_Long

public static java.lang.String createAbsTS_Long()
Creates a new absolute date instance based on the given format

Returns:
date as string