<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Time variables in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90474#M40680</link>
    <description>I need to manipulate a time variable (subtract a number of minutes from it), which would seem quite easy.

What ever I try though, the number of seconds is dropped. i.e.

Use a calculation stage to 'copy' the time variable to a string: 10:11:12 becomes 10:11

Using Right(Time,2) gives '11' and not '12'

Has anyone else had this issue and can suggest a way around it ?</description>
    <pubDate>Wed, 03 Jun 2015 16:27:00 GMT</pubDate>
    <dc:creator>Graeme__Tacon</dc:creator>
    <dc:date>2015-06-03T16:27:00Z</dc:date>
    <item>
      <title>Time variables</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90474#M40680</link>
      <description>I need to manipulate a time variable (subtract a number of minutes from it), which would seem quite easy.

What ever I try though, the number of seconds is dropped. i.e.

Use a calculation stage to 'copy' the time variable to a string: 10:11:12 becomes 10:11

Using Right(Time,2) gives '11' and not '12'

Has anyone else had this issue and can suggest a way around it ?</description>
      <pubDate>Wed, 03 Jun 2015 16:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90474#M40680</guid>
      <dc:creator>Graeme__Tacon</dc:creator>
      <dc:date>2015-06-03T16:27:00Z</dc:date>
    </item>
    <item>
      <title>You can subtract a number of</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90475#M40681</link>
      <description>You can subtract a number of minutes from a DateTime simply by subtracting a TimeSpan
E.g:  [theDateTime] - (MakeTimeSpan(0, 0, 2, 0))
Please do not use concoctions using FormatDateTime, or Left, Right, etc. These functions are designed for string processing, and will almost certainly result in a bug when used in the context of Dates and Times</description>
      <pubDate>Wed, 03 Jun 2015 17:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90475#M40681</guid>
      <dc:creator>GilesBathgate</dc:creator>
      <dc:date>2015-06-03T17:17:00Z</dc:date>
    </item>
    <item>
      <title>Since the OP was about Time,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90476#M40682</link>
      <description>Since the OP was about Time, rather than DateTime I thought it only fitting to provide another example:
MakeTime(12, 30, 04) - MakeTimeSpan(0,0,2,0)
Result: 12:28:04(time)</description>
      <pubDate>Wed, 03 Jun 2015 17:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90476#M40682</guid>
      <dc:creator>GilesBathgate</dc:creator>
      <dc:date>2015-06-03T17:25:00Z</dc:date>
    </item>
    <item>
      <title>Thanks Giles, that is exactly</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90477#M40683</link>
      <description>Thanks Giles, that is exactly what I was after.</description>
      <pubDate>Wed, 03 Jun 2015 18:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Time-variables/m-p/90477#M40683</guid>
      <dc:creator>Graeme__Tacon</dc:creator>
      <dc:date>2015-06-03T18:00:00Z</dc:date>
    </item>
  </channel>
</rss>

