<< Click to Display Table of Contents >> Navigation: PDF-XChange Editor Plus User Manual > Appendix > Macros > Time |
The Time macro uses the name Time and returns the current time (day, month, year, AM/PM in any combination - see below).
The syntax for this macro is %[Time] for the standard Windows format or %[Time]:<Parameter>] for custom formats.
The <parameter> value is a standard Windows <time formatting string>. Available parameters are detailed below:
•h returns the hours and omits the zero in cases of single-digit values.
•hh returns the hours and includes a zero in cases of single-digit values.
•H or HH returns the hours, includes a zero in cases of single-digit values and uses a 24 hour-clock when applicable.
•m returns the minutes and omits the zero in cases of single-digit values.
•mm returns the minutes and includes a zero in cases of single-digit values.
•s returns the seconds and omits the zero in cases of single-digit values.
•ss returns the seconds and includes a zero in cases single-digit values.
•t returns a single character to reference the a.m./p.m. variable, such as A/P.
•tt returns two characters to reference the a.m/p.m. variable, such as AM/PM.
For example, when using the Export to Images feature, the following options displayed in the Export to Images dialog box:
Figure 1. Export to Images Dialog Box. Save As Tab
If %[Time] is added to the file name text box, then the time of document creation will be added to the file name when it is created.