Class Time

java.lang.Object
  extended by Time

public class Time
extends java.lang.Object

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.
Now: Return the current time.
See the descriptions for each service for required parameters.

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

Since:
1.0
See Also:
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

Time

public Time()
Creates an instance.

Method Detail

main

public static void main(java.lang.String[] args)
Entry point for the application


Convert

public static void Convert(java.lang.String[] args)
Convert time from one format into another. Proper use:
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.

Since:
1.0

Now

public static void Now(java.lang.String[] args)
Determine the current time and assign it to a variable. Proper use:
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.

Since:
1.0