User Tools

Site Tools


token:ICUDateTime

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
token:ICUDateTime [2017/09/07 00:11]
peternlewis
token:ICUDateTime [2018/04/18 16:30]
JMichaelTX [Time Units] Clarify & reformat use of Plus 0 & 1
Line 31: Line 31:
 * Saturdays * Saturdays
  
-For a weekday ​(v8+), if you Plus 0, it will return the next appropriate day, possibly returning ​the start day if that is the correct ​day; if you Plus 1, it will return the next appropriate day, strictly after the starting day.+==== Using Plus 0 or 1 With Day of Week (v8+) ==== 
 + 
 +*  If the //Time Unit// is a day of the week (//Sunday// thru //​Saturday//​) 
 +  * **If you use a Plus 0** (//​%ICUDateTimePlus%**0**%//​)\\ 
 +it will return the next appropriate day for that day of week, possibly returning ​today if it is the same day of week as entered; 
 +    * So if Today is //​Tuesday//,​ and you use //​%ICUDateTimePlus%0%Tuesday%//,​ then it will return Today'​s date. 
 +    * Whereas, if you use //​%ICUDateTimePlus%0%Wednesday%//,​ it will return tomorrow'​s date. 
 +  * **If you use Plus 1** (//​%ICUDateTimePlus%**1**%//​)\\ 
 +it will return the next appropriate day, strictly after Today 
 + 
 +=== Examples === 
  
 For example, if today is Tuesday, September 5, 2017, you would get these results: For example, if today is Tuesday, September 5, 2017, you would get these results:
token/ICUDateTime.txt · Last modified: 2023/01/03 00:19 by ccstone