|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsunlabs.brazil.util.ClockFormat
public class ClockFormat
This class implements the "strftime" style clock format command. It decodes the following %X format strings:
Constructor Summary | |
---|---|
ClockFormat()
|
Method Summary | |
---|---|
static java.lang.String |
format(int clockVal,
java.lang.String format,
java.lang.String zone)
Formats a time value based on seconds into a human readable string. |
static boolean |
haveZone(java.lang.String zone)
See if a particular timezone is valid |
static void |
main(java.lang.String[] args)
Test main: ClockFormat format ?time? ?zone? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClockFormat()
Method Detail |
---|
public static java.lang.String format(int clockVal, java.lang.String format, java.lang.String zone)
clockVal
- Seconds since the epochformat
- The strftime style format string. If format is
null, then "%a %b %d %H:%M:%S %Z %Y" is used.zone
- The time zone abbreviation (e.g. GMT, or PST)
public static boolean haveZone(java.lang.String zone)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |