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


This variable will return the newest source file's date/time (so far) allowing you to date/timestamp your output with this information and not the date/time of the compile.

Note that the "compiler" (PPWIZARD) is considered to be a source file, as it also determines the format of the output. If the variable is used after the last #include to be processed, then the value returned must be the date/time of the latest file (so unless you are added the timestamp information near the end of your output you may not be able to make use of this variable).

The information is returned in the same format as that returned by the "GetFileTimeStamp()" routine (except that -1 is not possible). Also have a look at its example, as the macro it shows could be used with very minor modification. It is possible to work out the day of the week if you use the basedate routine.

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).


;--- Default (Ugly TimeStamp) ---
Last Modified <?NewestFileDateTime>

;--- Pretty format ---
Last Modified <?NewestFileDateTime:%c>

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

[Top][Contents][Search][Prev]: <?LessThan>[Next]: <?NewLine>

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm