PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: GetAmPmTime()[Next]: GetDependancyInfo()

GetAmPmTimeFromHhMmSs()

This is a rexx function provided by PPWIZARD. This routine (like all PPWIZARD extensions) can be used with any operating system supported by PPWIZARD.

This function reformats a passed 24 hour time and returns a 12 hour time of the form "HH:MM:SS??" or "HH:MM??". Note that "HH" never has a leading zero.

The parameters are as follows:

  1. The Time
    This is the 24 hour time in the format "HHMMSS" (exactly 6 characters) or "HH:MM:SS" (with or without the seconds). No validation is performed on the passed values, some valid ones are "15:59:52", 1:1:1", "155952" and "15:59".

  2. Want Seconds Returned?
    Optional parameter, the value should be 'Y' or 'N'. If the value is not supplied then the seconds value will only be returned if one was passed.

  3. AM/PM Text
    This optional parameter defaults to "am;pm" which is the text you want to use to represent am and pm times.

Example

       FileDateTime = GetFileTimeStamp(TheFile);
       FileTime     = GetAmPmTimeFromHhMmSs(substr(FileDateTime, 9))
    


[Top][Contents][Search][Prev]: GetAmPmTime()[Next]: GetDependancyInfo()

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Thursday January 17 2002 at 6:27pm