PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: GetAmPmTime()[Next]: GetCurrentDirectory()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> GetAmPmTimeFromHhMmSs()

GetAmPmTimeFromHhMmSs()

This is an inbuilt function function provided by PPWIZARD.

This function is passed a 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))


email me  any feedback, additional information or corrections.
See this page online (look for updates)

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


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Sunday November 05 2017 at 10:00am