public class ClockFormat
extends java.lang.Object
| Constructor and Description |
|---|
ClockFormat() |
| Modifier and Type | Method and Description |
|---|---|
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?
|
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