OracleAS Syndication Services API Reference
10g (9.0.4)

Part No. B10399-01

oracle.syndicate.util.date
Class ISODateTime

java.lang.Object
  |
  +--oracle.syndicate.util.date.ISODateTime
All Implemented Interfaces:
java.io.Serializable

public class ISODateTime
extends java.lang.Object
implements java.io.Serializable

Combination of both ISODate and ISOTime which are seperated by "T"

See Also:
Serialized Form

Field Summary
protected  int days
           
protected  int hours
           
protected  int minutes
           
protected  int month
           
protected  int seconds
           
protected  int subSeconds
           
protected  int year
           

 

Constructor Summary
ISODateTime()
           
ISODateTime(java.util.Date date)
           
ISODateTime(int year, int month, int days, int hours, int minutes, int seconds, int subSeconds)
           

 

Method Summary
 boolean after(ISODateTime anotherDate)
           
 boolean equals(java.lang.Object otherObj)
           
 int getDays()
           
 int getHours()
           
 java.util.Date getLocalDate()
           
static ISODateTime getLocalISODateTime(ISODateTime utcDate)
           
 int getMinutes()
           
 int getMonth()
           
 int getSeconds()
           
 int getSubSeconds()
           
static java.sql.Timestamp getTimeStamp(ISODateTime isoDt)
           
static ISODateTime getUTCISODateTime(ISODateTime localDate)
           
 int getYears()
           
 boolean hasSubSeconds()
           
static void main(java.lang.String[] args)
           
static ISODateTime parseDateTime(java.lang.String isoDateTime)
           
static ISODateTime parseTimeStamp(java.sql.Timestamp jts)
           
 void setDays(int days)
           
 void setHours(int hours)
           
 void setMinutes(int minutes)
           
 void setMonth(int month)
           
 void setSeconds(int seconds)
           
 void setSubSeconds(int subSeconds)
           
 void setYear(int year)
           
 java.lang.String toString()
           
 int yearAfter(ISODateTime anotherDateTime)
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

year

protected int year

month

protected int month

days

protected int days

hours

protected int hours

minutes

protected int minutes

seconds

protected int seconds

subSeconds

protected int subSeconds
Constructor Detail

ISODateTime

public ISODateTime(int year,
                   int month,
                   int days,
                   int hours,
                   int minutes,
                   int seconds,
                   int subSeconds)

ISODateTime

public ISODateTime(java.util.Date date)

ISODateTime

public ISODateTime()
Method Detail

parseDateTime

public static ISODateTime parseDateTime(java.lang.String isoDateTime)
                                 throws java.lang.NumberFormatException

getTimeStamp

public static java.sql.Timestamp getTimeStamp(ISODateTime isoDt)

parseTimeStamp

public static ISODateTime parseTimeStamp(java.sql.Timestamp jts)

getLocalDate

public java.util.Date getLocalDate()

getYears

public int getYears()

setYear

public void setYear(int year)

getMonth

public int getMonth()

setMonth

public void setMonth(int month)

getDays

public int getDays()

setDays

public void setDays(int days)

getHours

public int getHours()

setHours

public void setHours(int hours)

getMinutes

public int getMinutes()

setMinutes

public void setMinutes(int minutes)

getSeconds

public int getSeconds()

setSeconds

public void setSeconds(int seconds)

getSubSeconds

public int getSubSeconds()

hasSubSeconds

public boolean hasSubSeconds()

setSubSeconds

public void setSubSeconds(int subSeconds)

yearAfter

public int yearAfter(ISODateTime anotherDateTime)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

after

public boolean after(ISODateTime anotherDate)

getUTCISODateTime

public static ISODateTime getUTCISODateTime(ISODateTime localDate)

getLocalISODateTime

public static ISODateTime getLocalISODateTime(ISODateTime utcDate)

equals

public boolean equals(java.lang.Object otherObj)
Overrides:
equals in class java.lang.Object

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

Copyright © 2001, 2003, Oracle. All rights reserved.

Copyright © 2001, 2003, Oracle. All rights reserved.