org.jopendocument.dom
Class ODEpoch

java.lang.Object
  extended by org.jopendocument.dom.ODEpoch

public final class ODEpoch
extends Object

The null date of an OpenDocument.


Method Summary
 Calendar getCalendar()
           
 Calendar getDate(BigDecimal days)
           
 Calendar getDate(BigDecimal days, Calendar res)
           
 String getDateString()
           
 BigDecimal getDays(Calendar cal)
           
 BigDecimal getDays(Duration duration)
           
static ODEpoch getDefaultEpoch()
           
static ODEpoch getInstance(String date)
           
 Duration normalizeToDays(Duration dur)
           
 Duration normalizeToHours(Duration dur)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultEpoch

public static final ODEpoch getDefaultEpoch()

getInstance

public static final ODEpoch getInstance(String date)
                                 throws ParseException
Throws:
ParseException

getDateString

public final String getDateString()

getCalendar

public final Calendar getCalendar()

normalizeToDays

public final Duration normalizeToDays(Duration dur)

normalizeToHours

public final Duration normalizeToHours(Duration dur)

getDays

public final BigDecimal getDays(Duration duration)

getDays

public final BigDecimal getDays(Calendar cal)

getDate

public final Calendar getDate(BigDecimal days)

getDate

public final Calendar getDate(BigDecimal days,
                              Calendar res)


Copyright © 2010 jOpenDocument All Rights Reserved.