|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Time
public class Time
Multi-function time utility. This application is designed to function as a plug-in the the PPI Rulesets. This plug-in supports a variety of time related functions including the conversion between different time formats.
The general form of usage is:
time service name [parameters...]where service is the name of the service to run and name is the variable name to use in the rule that is output with the results of the requested service and parameters is one or more parameters required by the service.
Supported services are:
Convert: Convert from one time format to another.See the descriptions for each service for required parameters.
Now: Return the current time.
All time formats are specified using the format specified in PPITime
and also supports formats specified in Date
.
Results are returned as a ruleset assignment and are in the form:
$<name> = value
Date
Constructor Summary | |
---|---|
Time()
Creates an instance. |
Method Summary | |
---|---|
static void |
Convert(java.lang.String[] args)
Convert time from one format into another. |
static void |
main(java.lang.String[] args)
Entry point for the application |
static void |
Now(java.lang.String[] args)
Determine the current time and assign it to a variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Time()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static void Convert(java.lang.String[] args)
Convert name time format output
where: - Parameter
- the name of the variable to assign the output to.
- time
- the string with the time value to convert.
- format
- the name of the standard time format or a string containing the the specification of the time format time is in. See
PPITime
for details of how to specify a time format.- output
- the name of the standard time format or a string containing the the specification of the time format to convert time into and to assign to name. See
PPITime
for details of how to specify a time format.
public static void Now(java.lang.String[] args)
Now name output
where: - parameter
- the name of the variable to assign the output to.
- output
- the name of the standard time format or a string containing the the specification of the time format time is in. See
PPITime
for details of how to specify a time format.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |