<?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 Date and Time Split Across Multiple Fields in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-and-time-split-across-multiple-fields/m-p/53913#M228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any easy way to handle a tcp feed where the date and time are split across multiple fields, or would a custom connector have to be written. Currently the incoming feed looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Year&amp;nbsp; Month Day Hour Minute Second NanoSecond&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2013 5 31 0 0 22 621310393&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And ideally I would like a timestamp field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vassilo Walluschnig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri South Africa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 11:55:47 GMT</pubDate>
    <dc:creator>VassiloWalluschnig</dc:creator>
    <dc:date>2013-09-25T11:55:47Z</dc:date>
    <item>
      <title>Date and Time Split Across Multiple Fields</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-and-time-split-across-multiple-fields/m-p/53913#M228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any easy way to handle a tcp feed where the date and time are split across multiple fields, or would a custom connector have to be written. Currently the incoming feed looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Year&amp;nbsp; Month Day Hour Minute Second NanoSecond&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2013 5 31 0 0 22 621310393&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And ideally I would like a timestamp field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vassilo Walluschnig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri South Africa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-and-time-split-across-multiple-fields/m-p/53913#M228</guid>
      <dc:creator>VassiloWalluschnig</dc:creator>
      <dc:date>2013-09-25T11:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Split Across Multiple Fields</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-and-time-split-across-multiple-fields/m-p/53914#M229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Vassilo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, there is no easy way to do what I think you are wanting to do, for two reasons:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) At the 10.2.0 release the input connector you are most likely using (Text/TCP) does not support ASCII space characters as field delimiters. We expanded the adapter for this connector at 10.2.1 to add support for using any unicode character as a field delimiter, but unless you have some influence over the feed provider and can get the data as comma separated values (for example) you will have trouble at 10.2.0 getting the day/month/year/hour/minute/second values as separate Integer values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The feed currently has separate values for "months" and "days". Using a Field Calculator you can add a number of milliseconds (as a Long) to a value from a Date field to compute a relative value. For example, the expression &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;DateTime + (8 * 3600 * 1000)&lt;/STRONG&gt;&lt;SPAN&gt; would add "8 hours worth of milliseconds" to the value currently in the field DateTime, advancing the value by eight hours. The problem is that there is no easy way to adding N &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;months&lt;/STRONG&gt;&lt;SPAN&gt; to a Date value using the Field Calculator. You would have to lookup the number of days in each month and count up the total number of days in however many months you have ... and then add "NN &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;days &lt;/STRONG&gt;&lt;SPAN&gt;worth of milliseconds" to an established Date value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are looking for common functions needed in Field Calculator. A DateAdd() Function like what is found in Visual Basic might be useful here. It would be helpful if you could visit &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/"&gt;http://ideas.arcgis.com/&lt;/A&gt;&lt;SPAN&gt; and post the ideas you have for GeoEvent Processor. The more votes a particular idea gets the easier it is to prioritize an enhancement. When you do post an idea, please be sure to enter "GeoEvent Processor" as a tag value and check the 'ArcGIS Server' category. This will help route the idea to the team.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 18:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-and-time-split-across-multiple-fields/m-p/53914#M229</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2013-09-25T18:58:17Z</dc:date>
    </item>
  </channel>
</rss>

