Hour

<< Click to Display Table of Contents >>

Navigation:  PDF-XChange Editor Plus V7 User Manual > Appendix > Macros >

Hour


 

editor.icon Hour

 


 

The Hour macro inserts the hour value from the current time.

 

The syntax for this macro is %[Hour]

 

Example

 

If the current time is 11:32 then the [Hour] macro inserts '11':

 

hour.macro.example

Figure 1. %[Hour] Macro Example

 

Note that this macro is often used in conjunction with other macros in order to create combined output. For example the combined macros %[Hour]:%[Minute] output the hour followed by the minutes of the hour:

 

hour.macro.example.two

Figure 2. %[Hour] Combined Macro Example