User Tools

Site Tools


variables_you_can_use_in_lucy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
variables_you_can_use_in_lucy [2019/09/19 14:09] – [Landing Page Variables] lucyvariables_you_can_use_in_lucy [2019/09/19 14:11] – [Message Template Variables] lucy
Line 43: Line 43:
   * %comment% — recipient related information.   * %comment% — recipient related information.
   * %gender("MALE ADDRESSING", "FEMALE ADDRESSING")% — recipient gender   * %gender("MALE ADDRESSING", "FEMALE ADDRESSING")% — recipient gender
-  * %time(FORMAT, OFFSET, ZONE)% — Time based variables. FORMAT - date/time format. OFFSET - date/time offset in minutes, can be negative (example: "-60" - means 60 minutes prior to mail submit time, "20160" - 20160 minutes = 14 days). ZONE - time zone name (example: US/Central). Example: %time("l, H:i", "0", "Europe/Zurich")% — will output "Monday, 09:20" - exact time of email submission in Europe/Zurich zone. Example: %time("Y/m/d H:i:s", "60")% — will output "2016/12/12 10:20:30" - 1 hour ahead of email submit time+  * %time(FORMAT, OFFSET, ZONE)% — Time based variables. FORMAT - date/time format. OFFSET - date/time offset in minutes, can be negative (example: "-60" - means 60 minutes prior to mail submit time, "20160" - 20160 minutes = 14 days). ZONE - time zone name (example: US/Central).  
 +Example 1<php>%time("l, H:i", "0", "Europe/Zurich")%</php> — will output "Monday, 09:20" - exact time of email submission in Europe/Zurich zone.  
 + 
 +Example 2<php>%time("Y/m/d H:i:s", "60")%</php> — will output "2016/12/12 10:20:30" - 1 hour ahead of email submit time
  
 Please note, that these variables are not available in CSS and Javascript files. Please note, that these variables are not available in CSS and Javascript files.
variables_you_can_use_in_lucy.txt · Last modified: 2021/08/25 19:32 by lucy