Navigation:  Macroses >

Time

Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Text

These macros can be used, for example, to determine the date (or time) of template executing (or saving).

 

Current date in the format: yyyy-MM-dd  H-mm-ss-ms

This macro allows you to determine the current date and time according to the system time.

 

Example

 

Macro

{-TimeNow.TimeNow-}

 

Result

2011-03-29   18-16-28--822

 

Current time milliseconds

This macro determines milliseconds at the current moment of the time according to the system time

 

Example

 

Macro

{-TimeNow.Millisecond-}

 

Result

413

 

Current time seconds

This macro determines seconds at the current moment of the time  according to the system time.

 

Example

 

Macro

{-TimeNow.Second-}

 

Result

11

 

Current time minutes

This macro determines minutes at the current moment of the time  according to the system time.

 

Example

 

Macro

{-TimeNow.Minute-}

 

Result

32

 

Current time hours

This macro determines hours at the current moment of the time according to the system time

 

Example

 

Macro

{-TimeNow.Hour-}

 

Result

20

 

Current time day of week

This macro determines the current day of week  according to the system time

 

Example

 

Macro

{-TimeNow.DayOfWeek-}

 

Result

Tuesday

 

Current day

This macro determines the current day and time  according to the system time

 

Example

 

Macro

{-TimeNow.Date-}

 

Result

29.03.2011 18:22:43

 

Current month

This macro determines the serial number of the current month according to the system time.

 

Example

 

Macro

{-TimeNow.Month-}

 

Result

9

 

Current year

This macro determines the current year according to the system time.

 

Example

 

Macro

{-TimeNow.Year-}

 

Result

2011