Difference between revisions of "Live Inline Expressions"
Line 14: | Line 14: | ||
|- | |- | ||
| <code>{creation:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{creation:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | | <code>{creation:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{creation:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | ||
− | Date and/or time of creation timestamp of the live object in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter | + | Date and/or time of creation timestamp of the live object in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter ID]] for possible values. |
|- | |- | ||
| <code>{from:date:{LIVE_DATE_FORMAT}}</code> || <code>{from:date:mm/dd/yy}</code> || data-sort-value=70|'''0.1.70''' || | | <code>{from:date:{LIVE_DATE_FORMAT}}</code> || <code>{from:date:mm/dd/yy}</code> || data-sort-value=70|'''0.1.70''' || | ||
Line 27: | Line 27: | ||
|- | |- | ||
| <code>{from:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{from:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | | <code>{from:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{from:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | ||
− | Date and/or time of start timestamp of the live object in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter | + | Date and/or time of start timestamp of the live object in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter ID]] for possible values. |
'''Note: This expression only returns a value if the <code>type</code> property of the live object has been set to <code>"schedule"</code> or <code>"lifetime"</code>.''' | '''Note: This expression only returns a value if the <code>type</code> property of the live object has been set to <code>"schedule"</code> or <code>"lifetime"</code>.''' | ||
Line 42: | Line 42: | ||
|- | |- | ||
| <code>{to:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{to:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | | <code>{to:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{to:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | ||
− | Date and/or time of end timestamp of the live object in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter | + | Date and/or time of end timestamp of the live object in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter ID]] for possible values. |
'''Note: This expression only returns a value if the <code>type</code> property of the live object has been set to <code>"schedule"</code> or <code>"lifetime"</code>.''' | '''Note: This expression only returns a value if the <code>type</code> property of the live object has been set to <code>"schedule"</code> or <code>"lifetime"</code>.''' | ||
Line 53: | Line 53: | ||
|- | |- | ||
| <code>{now:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{now:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | | <code>{now:formatter:{LIVE_FORMATTER_ID}}</code> || <code>{now:formatter:date_time}</code> || data-sort-value=160|'''0.1.160''' || | ||
− | Date and/or time of current timestamp in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter | + | Date and/or time of current timestamp in live formatter format. The <code>{LIVE_FORMATTER_ID}</code> part must be replaced with the formatter ID. Please see [[#Live Formatter ID]] for possible values. |
|- | |- | ||
| <code>{duration:position}</code> || <code>{duration:position}</code> || data-sort-value=70|'''0.1.70''' || | | <code>{duration:position}</code> || <code>{duration:position}</code> || data-sort-value=70|'''0.1.70''' || | ||
Line 238: | Line 238: | ||
|} | |} | ||
− | == Live Formatter | + | == Live Formatter ID == |
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|+ IDs of live formatter | |+ IDs of live formatter |
Latest revision as of 11:31, 1 November 2024
Some live content properties support live inline expressions for adding formatted dates and times of the current state.
Syntax[edit]
Expression | Example | Since Version | Description |
---|---|---|---|
{creation:date:{LIVE_DATE_FORMAT}} |
{creation:date:mm/dd/yy} |
0.1.70 |
Date of creation timestamp of the live object in live date format. The |
{creation:time:{LIVE_TIME_FORMAT}} |
{creation:time:hh:mm:ss} |
0.1.70 |
Time of creation timestamp of the live object in live time format. The |
{creation:formatter:{LIVE_FORMATTER_ID}} |
{creation:formatter:date_time} |
0.1.160 |
Date and/or time of creation timestamp of the live object in live formatter format. The |
{from:date:{LIVE_DATE_FORMAT}} |
{from:date:mm/dd/yy} |
0.1.70 |
Date of start timestamp of the live object in live date format. The Note: This expression only returns a value if the |
{from:time:{LIVE_TIME_FORMAT}} |
{from:time:hh:mm:ss} |
0.1.70 |
Time of start timestamp of the live object in live time format. The Note: This expression only returns a value if the |
{from:formatter:{LIVE_FORMATTER_ID}} |
{from:formatter:date_time} |
0.1.160 |
Date and/or time of start timestamp of the live object in live formatter format. The Note: This expression only returns a value if the |
{to:date:{LIVE_DATE_FORMAT}} |
{to:date:mm/dd/yy} |
0.1.70 |
Date of end timestamp of the live object in live date format. The Note: This expression only returns a value if the |
{to:time:{LIVE_TIME_FORMAT}} |
{to:time:hh:mm:ss} |
0.1.70 |
Time of end timestamp of the live object in live time format. The Note: This expression only returns a value if the |
{to:formatter:{LIVE_FORMATTER_ID}} |
{to:formatter:date_time} |
0.1.160 |
Date and/or time of end timestamp of the live object in live formatter format. The Note: This expression only returns a value if the |
{now:date:{LIVE_DATE_FORMAT}} |
{now:date:mm/dd/yy} |
0.1.70 |
Date of current timestamp in live date format. The |
{now:time:{LIVE_TIME_FORMAT}} |
{now:time:hh:mm:ss} |
0.1.70 |
Time of current timestamp in live time format. The |
{now:formatter:{LIVE_FORMATTER_ID}} |
{now:formatter:date_time} |
0.1.160 |
Date and/or time of current timestamp in live formatter format. The |
{duration:position} |
{duration:position} |
0.1.70 |
Duration of the live object in simple position format. |
{duration:time:{LIVE_DURATION_FORMAT}} |
{duration:time:hh:mm:ss} |
0.1.70 |
Duration of the live object in live duration format. The |
{duration:text:{LIVE_DURATION_TEXT}} |
{duration:text:hms} |
0.1.70 |
Duration of the live object as live duration text. The |
{progress:position} |
{progress:position} |
0.1.70 |
Progress of the live object in simple position format. |
{progress:percentage} |
{progress:percentage} |
0.1.70 |
Progress of the live object in percentage. |
{progress:time:{LIVE_DURATION_FORMAT}} |
{progress:time:hh:mm:ss} |
0.1.70 |
Progress of the live object in live duration format. The |
{progress:text:{LIVE_DURATION_TEXT}} |
{progress:text:hms} |
0.1.70 |
Progress of the live object as live duration text. The |
{countdown:position} |
{countdown:position} |
0.1.70 |
Countdown of the live object in simple position format. Note: This expression returns for state |
{countdown:percentage} |
{countdown:percentage} |
0.1.70 |
Countdown of the live object in percentage. Note: This expression returns for state |
{countdown:time:{LIVE_DURATION_FORMAT}} |
{countdown:time:hh:mm:ss} |
0.1.70 |
Countdown of the live object in live duration format. The Note: This expression returns for state |
{countdown:text:{LIVE_DURATION_TEXT}} |
{countdown:text:hms} |
0.1.70 |
Countdown of the live object as live duration text. The Note: This expression returns for state |
{overflow:position} |
{overflow:position} |
0.1.70 |
Overflow of the live object in simple position format. |
{overflow:time:{LIVE_DURATION_FORMAT}} |
{overflow:time:hh:mm:ss} |
0.1.70 |
Overflow of the live object in live duration format. The |
{overflow:text:{LIVE_DURATION_TEXT}} |
{overflow:text:hms} |
0.1.70 |
Overflow of the live object as live duration text. The |
{txt:{COLOR}:{LIVE_INLINE_EXPRESSION}} |
|
0.1.70 |
Colored live inline expression. The |
Live Date Format[edit]
Format | Example | Since Version |
---|---|---|
m|d|D|M |
1|24|Thu|Jan |
0.1.70 |
mm|dd|yy|DD|MM |
01|24|19|Thursday|January |
0.1.70 |
ddd|yyyy |
24th|2019 |
0.1.70 |
mm/dd/yy |
01/24/19 |
0.1.70 |
dd.mm.yy |
24.01.19 |
0.1.70 |
yyyy-mm-dd |
2019-01-24 |
0.1.70 |
MM d, yyyy |
January 24, 2019 |
0.1.70 |
d. MM yyyy |
24. January 2019 |
0.1.70 |
D mm/dd |
Thu 01/24 |
0.1.70 |
D, dd.mm. |
Thu, 24.01. |
0.1.70 |
D mm/dd/yyyy |
Thu 01/24/2019 |
0.1.70 |
D, dd.mm.yyyy |
Thu, 24.01.2019 |
0.1.70 |
DD, MM d, yyyy |
Thursday, January 24, 2019 |
0.1.70 |
DD, d. MM yyyy |
Thursday, 24. January 2019 |
0.1.70 |
Live Time Format[edit]
Format | Example | Since Version |
---|---|---|
h|m|s |
14|16|4 |
0.1.70 |
h|m|s/ampm |
2|16|4 PM |
0.1.70 |
hh|mm|ss |
14|16|04 |
0.1.70 |
hh|mm|ss/ampm |
02|16|04 PM |
0.1.70 |
hh:mm |
14:16 |
0.1.70 |
h:mm/ampm |
2:16 PM |
0.1.70 |
hh:mm:ss |
14:16:04 |
0.1.70 |
h:mm:ss/ampm |
2:16:04 PM |
0.1.70 |
Live Duration Format[edit]
Format | Example | Since Version |
---|---|---|
h|m|s |
1|34|0 |
0.1.70 |
hh|mm|ss |
01|34|00 |
0.1.70 |
H|M|S |
1|34|00 |
0.1.70 |
[h]|[m]|[s] |
1|34| |
0.1.70 |
h:m |
1:34 |
0.1.70 |
hh:mm |
01:34 |
0.1.70 |
h:m:s |
1:34:0 |
0.1.70 |
hh:mm:ss |
01:34:00 |
0.1.70 |
m:s |
34:0 |
0.1.70 |
mm:ss |
34:00 |
0.1.70 |
[H:]M:ss |
1:34:00 |
0.1.70 |
Live Duration Text[edit]
Syntax | Example | Since Version |
---|---|---|
dhms |
1 hr 34 min |
0.1.70 |
DHMS |
0 days 1 hr 34 min 0 sec |
0.1.70 |
Dhms |
0 days 1 hr 34 min |
0.1.70 |
hms |
1 hr 34 min |
0.1.70 |
hmS |
1 hr 34 min 0 sec |
0.1.70 |
hm |
1 hr 34 min |
0.1.70 |
ms |
94 min |
0.1.70 |
d |
0 days |
0.1.70 |
h |
2 hr |
0.1.70 |
m |
94 min |
0.1.70 |
s |
5640 sec |
0.1.70 |
~dhms |
2 hr |
0.1.74 |
~hms |
2 hr |
0.1.74 |
~ms |
94 min |
0.1.74 |
~s |
5640 sec |
0.1.74 |
Live Formatter ID[edit]
Formatter ID | Example | Since Version |
---|---|---|
time |
11:09 AM |
0.1.160 |
time_long |
11:09:38 AM |
0.1.160 |
time_day |
Wed, 11:09 AM |
0.1.160 |
time_day_long |
Wed, 11:09:38 AM |
0.1.160 |
day |
Wed 10/30 |
0.1.160 |
day_long |
Wed 10/30/2024 |
0.1.160 |
day_full |
Wednesday, October 30, 2024 |
0.1.160 |
day_time |
Wed 10/30, 11:09 AM |
0.1.160 |
day_time_long |
Wed 10/30/2024, 11:09 AM |
0.1.160 |
day_time_full |
Wednesday, October 30, 2024, 11:09 AM |
0.1.160 |
date |
10/30/24 |
0.1.160 |
date_long |
October 30, 2024 |
0.1.160 |
date_time |
10/30/24, 11:09 AM |
0.1.160 |
date_time_long |
October 30, 2024, 11:09 AM |
0.1.160 |