Parameter | Possible Values | Default Value |
---|---|---|
fontname | Any installed font (e.g. TimesRoman) | TimeRoman |
fontsize | Any valid point size (e.g. 12, 14, etc.) | 14 |
mode | The string lst, utc or local | lst |
backgroundcolor | white, black, red, blue, green, yellow | white |
foregroundcolor | white, black, red, blue, green, yellow | red |
longitude | Observer longitude in decimal degrees West of Greenwich | 0.0 |
lstfmt | LST time display format string (examples below) | HH:mm:ss _LST_ |
utcfmt | UTC time display format string | HH:mm:ss _UTC_ |
localfmt | Local time display format string | HH:mm:ss zzz |
Some additional features exist when jLSTclock is run as an application. If a mouse button is pressed when in the jLSTclock window, a popup menu is displayed, with options to change the display format from LST to UTC or local time. (I use this alot.) You can also use keystoke short cuts for this. Type L for LST, U for UTC and T for local time. The font size can be changed by pressing + or - . (Eventually I should make this automagic, when a window resize occurs.)
Symbol Meaning
Presentation Example
------ -------
------------ -------
G
era designator (Text)
AD
y
year
(Number)
1996
M
month in year
(Text & Number) July & 07
d
day in month
(Number)
10
h
hour in am/pm (1~12) (Number)
12
H
hour in day (0~23) (Number)
0
m
minute in hour (Number)
30
s
second in minute (Number)
55
S
millisecond
(Number)
978
E
day in week
(Text)
Tuesday
D
day in year
(Number)
189
F
day of week in month (Number)
2 (2nd Wed in July)
w
week in year
(Number)
27
W
week in month
(Number)
2
a
am/pm marker
(Text)
PM
k
hour in day (1~24) (Number)
24
K
hour in am/pm (0~11) (Number)
0
z
time zone
(Text)
Pacific Standard Time
'
escape for text (Delimiter)
''
single quote
(Literal) '
jLSTclock specific extensions:
_
underscore
(Delimiter) Some Text String
yyyyy Modified
Julian Day (Number)
51544 (lstfmt field only)
Format Pattern
Result
--------------
-------
"yyyy.MM.dd G 'at' hh:mm:ss z"
->> 1996.07.10 AD at 15:08:56 PDT
"EEE, MMM d, ''yy"
->> Wed, July 10, '96
"h:mm a"
->> 12:08 PM
"hh 'o''clock' a, zzzz"
->> 12 o'clock PM, Pacific Daylight Time
"hh _o__clock_ a, zzzz"
->> 12 o'clock PM, Pacific Daylight Time
"K:mm a, z"
->> 0:00 PM, PST
"yyyyy.MMMMM.dd GGG hh:mm aaa"
->> 1996.July.10 AD 12:08 PM
<applet CODE="jlstclk.class" NAME="jLSTclock" WIDTH=450 HEIGHT=70>
<param NAME=fontname VALUE="Arial">
<param NAME=fontsize VALUE="16">
<param NAME=backgroundcolor VALUE="white">
<param NAME=foregroundcolor VALUE="red">
<param NAME=longitude VALUE="79.83888">
<param NAME=mode VALUE="lst">
</applet>
If your interested in the source code it should be here.
The binary class
and jar
files, Windows
batch file or bourne
shell script are also available.
(Standard Disclaimers apply).
Other Notes:
This applet/application need java 1.1.1 or equivalent to run.
This applet/application uses a deprecated method of java.util.Date,
but it will be some time before this causes any problems.
No swing or other "extra" java packages are required. Tested on Windows
98, Linux 6.0, Solaris 2.5.1 and 2.6.