<?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>time calculation</title><link>https://community.appian.com/discussions/f/general/25233/time-calculation</link><description>Hi Team, 
 
 I want to calculate time in hours between two date time like on 
 18th 8am to 18th 10am :- 2 hours 
 18th 12pm to 18th 8pm :- 8 hours 
 
 total :- 10 hours 
 
 Can anyone please help calworkhours is not working properly.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: time calculation</title><link>https://community.appian.com/thread/97928?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 16:06:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f82ee91-88dd-4ec3-a096-3ad010c1de81</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="59361" url="~/discussions/f/general/25233/time-calculation/97927#97927"]Working hours in calendar?[/quote]
&lt;p&gt;It&amp;#39;s probably this.&amp;nbsp; I just tried it on my system and the results seemed finnicky (i don&amp;#39;t think we actually use this function anywhere, luckily) - i checked our system calendar and noticed it&amp;#39;s set to use working hours in GMT for some reason.&amp;nbsp; I assume this might be true for many people who don&amp;#39;t realize it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: time calculation</title><link>https://community.appian.com/thread/97927?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 15:26:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b937076-8197-4347-987f-4a7449717518</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Timezone? Working hours in calendar?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: time calculation</title><link>https://community.appian.com/thread/97926?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 15:22:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e4352ba-5645-4ecb-98cf-808ab8404383</guid><dc:creator>bihitakdass</dc:creator><description>&lt;p&gt;Not sure why its giving me something different&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1658157766748v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: time calculation</title><link>https://community.appian.com/thread/97925?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 15:09:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f231389-df65-401a-a5f1-2ebef3fd18e1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1658157018130v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: time calculation</title><link>https://community.appian.com/thread/97923?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 15:00:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:922132b1-7566-4c03-86bd-3aba11fb3457</guid><dc:creator>bihitakdass</dc:creator><description>&lt;p&gt;its gives value as 1 if we consider 8 am to 10 am , but I want 2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: time calculation</title><link>https://community.appian.com/thread/97922?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 14:57:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1dd68ba2-8816-407b-b4a6-dca900060e9f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Please explain what &amp;quot;&lt;span&gt;not working properly&amp;quot; actually means.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: time calculation</title><link>https://community.appian.com/thread/97921?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 14:52:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be281a0b-6b70-4828-a180-73c8fe73489d</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Not very helpful but I &lt;strong&gt;think&amp;nbsp;&lt;/strong&gt;calworkhours() is literally calculating a &amp;quot;between&amp;quot; value which means that one of the boundaries (probably the end_datetime) is not being included. An example: &lt;span style="text-decoration:underline;"&gt;between&lt;/span&gt; 8am and 10am is actually 1hour and 59 minutes and 59 seconds. I can see that if I do this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;calworkhours(
  fn!todatetime(&amp;quot;18/07/2022 8:00 am&amp;quot;),
  fn!todatetime(&amp;quot;18/07/2022 10:01 am&amp;quot;),
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;then I get this;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1658155990023v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>