|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sunlabs.brazil.util.ClockFormat
This class implements the "strftime" style clock format command. It decodes the following %X format strings:
Constructor Summary | |
ClockFormat()
|
Method Summary | |
static String |
format(int clockVal,
String format,
String zone)
Formats a time value based on seconds into a human readable string. |
static boolean |
haveZone(String zone)
See if a particular timezone is valid |
static void |
main(String[] args)
Test main: ClockFormat format ?time? ?zone? |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClockFormat()
Method Detail |
public static String format(int clockVal, String format, 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(String zone)
public static void main(String[] args) throws Exception
Exception
|
Version 2.1, Generated 12/30/04 Copyright (c) 2001-2004, Sun Microsystems. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |