Actions

Difference between revisions of "%clk"

From Zenitel Wiki

(New page: %clk( , ) : Event_Handler macro - Current date/time Returns the current time and date. Examples: %clk current date/time 2003-10-16 12:59:35 * %clk(8) returns time 12:5...)
 
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{AI}}
 
%clk( , ) : [[Event_Handler]] macro - Current date/time
 
%clk( , ) : [[Event_Handler]] macro - Current date/time
  
Line 4: Line 5:
  
 
Examples:
 
Examples:
  %clk current date/time 2003-10-16 12:59:35
+
  %clk       current date/time   2003-10-16 12:59:35
  * %clk(8) returns time             12:59:35
+
  %clk(8)       current time       12:59:35
  * %clk(10<) returns date         2003-10-16
+
  %clk(10<)     current date       2003-10-16
  %clkyear current year        2003
+
  %clkyear       current year        2003
  %clkmon current month      10
+
  %clkmon       current month      10
  %clkday current day        16
+
  %clkday       current day        16
  %clkhour current hour        12
+
  %clkhour       current hour        12
  %clkmin current minute      59
+
  %clkmin       current minute      59
  %clksec current second      35
+
  %clksec       current second      35
  %clkwday current day of week 5    (1 = monday, 7 = Sunday)
+
  %clkwday       current day of week 5    (1 = monday, 7 = Sunday)
 
  %1.clk, %1.clkyear etc. Scheduling tick time
 
  %1.clk, %1.clkyear etc. Scheduling tick time
  
Line 19: Line 20:
 
Back to [[Event_Handler#List_of_macros]].
 
Back to [[Event_Handler#List_of_macros]].
  
 +
[[Category:Event Handler macros]]
 
[[Category:Event Handler]]
 
[[Category:Event Handler]]

Latest revision as of 08:47, 4 October 2019

AI.png

%clk( , ) : Event_Handler macro - Current date/time

Returns the current time and date.

Examples:

%clk	       current date/time   2003-10-16 12:59:35
%clk(8)        current time        12:59:35
%clk(10<)      current date        2003-10-16
%clkyear       current year        2003
%clkmon        current month       10
%clkday        current day         16
%clkhour       current hour        12
%clkmin        current minute      59
%clksec        current second      35
%clkwday       current day of week 5    (1 = monday, 7 = Sunday)
%1.clk, %1.clkyear etc.	Scheduling tick time


Back to Event_Handler#List_of_macros.