org.fao.geonet.util
Class ISODate

java.lang.Object
  extended by org.fao.geonet.util.ISODate
All Implemented Interfaces:
Cloneable

public class ISODate
extends Object
implements Cloneable


Field Summary
 int day
           
 int hour
           
 boolean isShort
           
 int min
           
 int month
           
 int sec
           
 int year
           
 
Constructor Summary
ISODate()
           
ISODate(long time)
           
ISODate(String isoDate)
           
 
Method Summary
 ISODate clone()
           
 boolean equals(Object obj)
           
 String getDate()
           
 long getSeconds()
           
 String getTime()
           
 int hashCode()
           
 void setDate(String isoDate)
           
 long sub(ISODate date)
          Subtract a date from this date and return the seconds between them
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

year

public int year

month

public int month

day

public int day

hour

public int hour

min

public int min

sec

public int sec

isShort

public boolean isShort
Constructor Detail

ISODate

public ISODate()

ISODate

public ISODate(long time)

ISODate

public ISODate(String isoDate)
Method Detail

clone

public ISODate clone()
Overrides:
clone in class Object

setDate

public void setDate(String isoDate)

sub

public long sub(ISODate date)
Subtract a date from this date and return the seconds between them


getDate

public String getDate()

getTime

public String getTime()

toString

public String toString()
Overrides:
toString in class Object

getSeconds

public long getSeconds()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2003-2013. All Rights Reserved.