<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>display watch or digital clock</title><link>https://community.appian.com/discussions/f/user-interface/25800/display-watch-or-digital-clock</link><description>I want to show only the time left out of the total time allocated by me. 
 
 
 Anyone can help me out on this?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/128689?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 13:25:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3bff4f0-28ac-4863-a756-3ec79e7a7bbc</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;The error is pretty clear. What problem are you facing in resolving this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/128688?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 13:18:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea7f5de1-1ef1-4489-8bd4-54eb57dc6fe0</guid><dc:creator>vishalk3971</dc:creator><description>&lt;p&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function &amp;#39;trunc&amp;#39; parameter 1 [line 16]: Invalid division: Denominator may not be zero (0)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;it is not working its giving me this error&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100953?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 05:54:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8586a06c-afb6-4bf0-8dbb-9367cb2eabe0</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;Thank you &lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100951?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 05:54:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08cd7163-5081-4f05-81cc-b947c5a5883d</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;Thank you,&amp;nbsp;&lt;a href="/members/chris"&gt;Chris&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100950?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 05:53:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ebed3d6-8f64-4e27-aee5-35fda1561010</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;Thank you &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100769?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 17:40:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2577710-0bf6-463c-afd4-1a59b4b87464</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;For sure that is a better solution with a!match() (for those on Appian 22.1 or newer), this was a weekend/internal/concept project for fun, quick build back a few years ago&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f643.svg" title="Upside down"&gt;&amp;#x1f643;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100768?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 17:36:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a05d565-15ae-4647-829b-050f4e9b7c76</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="2401" url="~/discussions/f/user-interface/25800/display-watch-or-digital-clock/100766#100766"]this could be optimized..[/quote]
&lt;p&gt;hint: &lt;em&gt;a!match()&lt;/em&gt; executes its &amp;quot;whenTrue&amp;quot; parameters in order, choosing only the first one that returns true (which would get rid of your and() statements altogether, because you&amp;#39;d just go from the bottom up in evaluating values of ri!pct).&lt;/p&gt;
&lt;p&gt;Edit: i got bored so&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!match(
  value: ri!pct,
  
  whenTrue: ri!notSet,
  then: &amp;quot;#afafaf&amp;quot;,
  
  whenTrue: fv!value &amp;lt; 20,
  then: &amp;quot;#008000&amp;quot;,
  
  whenTrue: fv!value &amp;lt; 40,
  then: &amp;quot;#a4d100&amp;quot;,
  
  whenTrue: fv!value &amp;lt; 60,
  then: &amp;quot;#f9fc00&amp;quot;,
  
  whenTrue: fv!value &amp;lt; 80,
  then: &amp;quot;#ff8500&amp;quot;,
  
  whenTrue: fv!value &amp;gt;= 80,
  then: &amp;quot;#ff0500&amp;quot;,
  
  default: &amp;quot;#afafaf&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100766?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 17:30:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7331e7b0-a9b1-406f-8ee9-fa75e061db02</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Just for an OOTB example, I implemented something for a similar requirement with a!gaugeField() for a countdown timer in a Meeting Minute type app:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;/* rule inputs are datetime */

a!localVariables(
  local!notSet: or(
    rule!APN_isEmpty(ri!start),
    rule!APN_isEmpty(ri!end),
    rule!APN_isEmpty(ri!current),
    ri!current&amp;lt;ri!start
  ),
  local!hours: if(local!notSet,0,hour(tointervalds(ri!end-ri!start))),
  local!minutes: if(local!notSet,0,minute(tointervalds(ri!end-ri!start))),
  local!duration: if(local!notSet,0,(local!hours*60)+local!minutes),
  local!curHoursIn: if(local!notSet,0,hour(tointervalds(ri!current-ri!start))),
  local!curMinutesIn: if(local!notSet,0,minute(tointervalds(ri!current-ri!start))),
  local!durationIn: if(local!notSet,0,(local!curHoursIn*60)+local!curMinutesIn),
  local!remainingMinutes: if(local!notSet,0,if(local!durationIn&amp;gt;local!duration,0,local!duration-local!durationIn)),
  local!pct: if(local!notSet,0,trunc((local!durationIn/local!duration)*100,0)),

  {
    a!gaugeField(
      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
      percentage: local!pct,
      primaryText: if(local!notSet,&amp;quot;---&amp;quot;,local!remainingMinutes),
      secondaryText: &amp;quot;mins remain&amp;quot;,
      color: rule!MM_getGaugeColorForPct(
        pct: local!pct,
        notSet: local!notSet
      ),
      size: &amp;quot;MEDIUM&amp;quot;,
      align: &amp;quot;CENTER&amp;quot;,
    )
  }
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Helper rule!MM_getGaugeColorForPct() (this could be optimized..):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;if(
  ri!notSet,
  &amp;quot;#afafaf&amp;quot;,
  if(
    ri!pct &amp;lt; 20,
    &amp;quot;#008000&amp;quot;,
    if(
      and(
        ri!pct &amp;gt;= 20,
        ri!pct &amp;lt; 40
      ),
      &amp;quot;#a4d100&amp;quot;,
      if(
        and(
          ri!pct &amp;gt;= 40,
          ri!pct &amp;lt; 60
        ),
        &amp;quot;#f9fc00&amp;quot;,
        if(
          and(
            ri!pct &amp;gt;= 60,
            ri!pct &amp;lt; 80
          ),
          &amp;quot;#ff8500&amp;quot;,
          if(
            ri!pct &amp;gt;= 80,
            &amp;quot;#ff0500&amp;quot;,
            &amp;quot;#afafaf&amp;quot;
          )
        )
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100747?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:54:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c41ebde-592c-4ed3-aad5-08ed3f3de08b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;That one indicates on its listing that it&amp;#39;s &amp;quot;archived&amp;quot;.&amp;nbsp; I was unable to pull it up in the admin console plug-in deployment manager.&amp;nbsp; Perhaps &lt;a href="/b/appmarket/posts/timer-component-plug-in"&gt;this one&lt;/a&gt; is a better current alternative?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100746?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:52:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eea442a3-4e79-40b5-a860-a2c5cd604bbe</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;Okay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100745?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:52:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df1ec99b-1513-4235-a3ae-0878bb0c8468</guid><dc:creator>kavitar5580</dc:creator><description>&lt;ul&gt;
&lt;li&gt;the elapsed time since something started?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100744?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:45:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9fd2ac5-c470-4084-966d-c65e4a1e65ab</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="89970" url="~/discussions/f/user-interface/25800/display-watch-or-digital-clock/100737#100737"]Yes[/quote]
&lt;p&gt;But which one are you saying &amp;quot;Yes&amp;quot; to?&amp;nbsp; Those were 3 separate (mutually exclusive) questions...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100738?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:24:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:822d35b9-132b-4f82-89e5-3b08dcd2b5f0</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You can use the above plugin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100737?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:23:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bab61964-4450-4f9f-b3d1-face7c73c231</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100736?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:22:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:787e89f8-c6c5-49d4-bb10-3ee2bede45aa</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;&lt;span&gt;count down timer&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100734?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:20:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38067748-b553-430c-9eab-703544f708e1</guid><dc:creator>kavitar5580</dc:creator><description>&lt;p&gt;Yes like Appian Exam I want to make a timer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100733?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:16:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ae5b02d-eda4-4bac-b74c-c2a6108e27dc</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Maybe this is something you need -&amp;nbsp;&lt;a href="https://community.appian.com/b/appmarket/posts/real-time-clock-component-plug-in"&gt;community.appian.com/.../real-time-clock-component-plug-in&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100732?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:10:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49fa29f6-69e3-470e-b653-5c0a0fb2de07</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;In the meantime until Appian&amp;nbsp;introduce the functionality, you can refresh the time after every 30 seconds by using refresh interval and show that time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: display watch or digital clock</title><link>https://community.appian.com/thread/100730?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:00:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23e0ca85-56f8-485f-8797-8aec712bbef6</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;We need a little bit more to go on. Do you mean:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the time of day?&lt;/li&gt;
&lt;li&gt;the elapsed time since something started?&lt;/li&gt;
&lt;li&gt;the remaining time you have left to finish something by?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>