|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbbc.rd.tvanytime.util.TimeToolbox
public class TimeToolbox
TimeToolbox: A class (which should be treated as abstract) offering useful methods on TV Anytime time and date types.
| Method Summary | |
|---|---|
static java.util.Date |
makeDate(java.lang.String tvaTimeString)
makeDate - creates and returns a Date object of UTC when given a TVA time format string (eg "2002-05-16T00:30:00Z" or "2002-05-16T00:30:00:+02:30"). |
static java.lang.String |
makeTVATimeString(java.util.Date date)
makeTVATimeString - creates and returns a TVA time format string (eg "2002-05-16T00:30:00Z" - ie always GMT) when given a java.util.Date object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Date makeDate(java.lang.String tvaTimeString)
throws TVAnytimeException
tvaTimeString - TVA formatted time string
TVAnytimeException - thrown when there's a problem parsing tvaTimeStringpublic static java.lang.String makeTVATimeString(java.util.Date date)
date - a java.util.Date object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||