PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: <?InputComponent>[Next]: <?InputComponentLine>
\ -> Standard Definitions -> <?InputComponentTime>

<?InputComponentTime[:format]>

This variable contains the date and time of the file identified by the "<?InputComponent>" symbol.

The date and time is of a fairly "pretty" format. The default format is suitable for Australia and subject to change at my whim. Basically, if you need a specific format then configure this, do not assume that this variable returns any specific format.

The symbol makes use of the FormatTime() routine to perform the formatting with the 3rd parameter being "PPWIZARD". This information will allow you to alter the language and adjust some formatting.

To determine the overall formatting PPWIZARD first looks for a macro called "PPWIZARD_FORMAT_INPUTCOMPONENTTIME", if this is not found then it will look for a macro called "PPWIZARD_FORMAT_DATETIME", if this is not found then PPWIZARD uses its default formatting string of "%c".

Note that it is possible to supply an alternative format (see FormatTime()) to override the default. To do this add a colon followed by the time format without spaces (use "%_" in place of spaces).

This is a Standard Definition which always exists (you don't need to #define it). Note that you can create your own variations or completely new ones (see the examples).

Example

;--- Method 1 ---
#define PPWIZARD_FORMAT_INPUTCOMPONENTTIME %v       ;;Modify format (optional)
Last Modified <?InputComponentTime>

;--- Method 2 ---
Last Modified <?InputComponentTime:%v%_at%_%r>


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

[Top][Contents][Search][Prev]: <?InputComponent>[Next]: <?InputComponentLine>


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