Sleepbot.com Java Classes

com.sleepbot.WRLDtime.app
Class WRLDtimeNow

java.lang.Object
  extended bycom.sleepbot.WRLDtime.app.WRLDtimeNow

public class WRLDtimeNow
extends java.lang.Object

A simple command-line app which returns the current WRLD.time.
 
Its WRLDcron chronometer is fully configurable via command-line options. For a full list of options, use '-help'. The application does not support the use of an external configuration file.
 
The current time is always returned in a format such as 'XX.XX'; the 2-digit measure, a period separator, then the 2-digit beat. The application will adapt the format to display the chronometer's maximum precision.
 
For more information, please see the general documentation at Sleepbot.com.
 
version 1.3 - 01Jan05 - Daniel M Foley
version 1.0 - 15Feb98 - Daniel M Foley


Field Summary
static java.lang.String ParamDIVISOR
          The '-divisor' parameter.
static java.lang.String ParamFACTOR
          The '-factor' parameter.
static java.lang.String ParamFROMGMT
          The minutes-from-GMT ('-fromgmt') parameter.
static java.lang.String ParamHELP
          The '-help' parameter.
static java.lang.String ParamHELP_alt
           
static java.lang.String ParamUTC_CGI
          The UTC CGI URL ('-utccgi') parameter.
static java.lang.String ParamUTC_HOST
          The UTC host ('-utchost') parameter.
static java.lang.String ParamUTC_HOST_alt
           
static java.lang.String ParamUTC_PORT
          The UTC port ('-utcport') parameter.
static java.lang.String ParamUTC_PORT_alt
           
 
Constructor Summary
WRLDtimeNow()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main routine for the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ParamHELP

public static final java.lang.String ParamHELP
The '-help' parameter.
 
This will play back the command-line usage of this application.

See Also:
Constant Field Values

ParamFACTOR

public static final java.lang.String ParamFACTOR
The '-factor' parameter.
 
For more information, see WRLDtime.SETTING_CRON_FACTOR.

See Also:
Constant Field Values

ParamDIVISOR

public static final java.lang.String ParamDIVISOR
The '-divisor' parameter.
 
For more information, see WRLDtime.SETTING_CRON_DIVISOR.

See Also:
Constant Field Values

ParamFROMGMT

public static final java.lang.String ParamFROMGMT
The minutes-from-GMT ('-fromgmt') parameter.
 
For more information, see WRLDtime.SETTING_CRON_FROMGMT.

See Also:
Constant Field Values

ParamUTC_HOST

public static final java.lang.String ParamUTC_HOST
The UTC host ('-utchost') parameter.
 
For more information, see WRLDtime.SETTING_CRON_UTC_HOST.

See Also:
Constant Field Values

ParamUTC_PORT

public static final java.lang.String ParamUTC_PORT
The UTC port ('-utcport') parameter.
 
For more information, see WRLDtime.SETTING_CRON_UTC_PORT.

See Also:
Constant Field Values

ParamUTC_CGI

public static final java.lang.String ParamUTC_CGI
The UTC CGI URL ('-utccgi') parameter.
 
For more information, see WRLDtime.SETTING_CRON_UTC_CGI.

See Also:
Constant Field Values

ParamHELP_alt

public static final java.lang.String ParamHELP_alt
See Also:
Constant Field Values

ParamUTC_HOST_alt

public static final java.lang.String ParamUTC_HOST_alt
See Also:
Constant Field Values

ParamUTC_PORT_alt

public static final java.lang.String ParamUTC_PORT_alt
See Also:
Constant Field Values
Constructor Detail

WRLDtimeNow

public WRLDtimeNow()
Method Detail

main

public static void main(java.lang.String[] args)
The main routine for the application.
 
It pretty much just collects all the parameters, applies them and spits out a WRLD.time code. Not much interesting to describe here.
 
The best documentation example in the com.sleepbot.WRLDtime.app.* package is WRLDtimeApplet.


Sleepbot.com Java Classes

Copyright 1995-..   Lookit the Cat Productions