org.hackystat.sensor.ant.util
Class LongTimeConverter

java.lang.Object
  extended by org.hackystat.sensor.ant.util.LongTimeConverter

public final class LongTimeConverter
extends java.lang.Object

Utilities to convert times represented as a long to other formats.

Author:
jsakuda

Method Summary
static javax.xml.datatype.XMLGregorianCalendar convertLongToGregorian(long timeInMillis)
          Converts a time represented in a long to a XmlGregorianCalendar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertLongToGregorian

public static javax.xml.datatype.XMLGregorianCalendar convertLongToGregorian(long timeInMillis)
Converts a time represented in a long to a XmlGregorianCalendar.

Parameters:
timeInMillis - The time to convert in milliseconds.
Returns:
Returns the time passed in as a XmlGregorianCalendar.