<?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 Re: SQL date/time import issue in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555392#M59071</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/31808/sunilb2.html" nodeid="31808"&gt;@Sunil B2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It actually turns out that your SQL imported value corresponds to 420 years, 228 days, 8 hours, 29 minutes, and 50.237 seconds. This is the amount of time that has elapsed since January 1, 1601 12:00:00 AM, which is the earliest time/date currently allowed by FlexSim. My guess would be that FlexSim produces the time/date format by adding the EventTime in seconds to that initial value or something along those lines.&lt;/P&gt;&lt;P&gt;Does this address your question?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 18 Aug 2021 16:55:09 GMT</pubDate>
    <dc:creator>ryan_c10</dc:creator>
    <dc:date>2021-08-18T16:55:09Z</dc:date>
    <item>
      <title>SQL date/time import issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555391#M59070</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.5 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV class="fr-view clearfix"&gt;
  &lt;P&gt;When importing date/time data into global table from sql db , the data/time fraction is off by 420 years in fractions . Below picture shows the date, its value in excel and imported value via DB connection&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1629292672737.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507069i0BDAE2B2E92AA2DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1629292672737.png" alt="1629292672737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;see the attach model with copy paste and import. into global tables&lt;/P&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:30:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555391#M59070</guid>
      <dc:creator>sunil_b2</dc:creator>
      <dc:date>2021-08-18T13:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL date/time import issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555392#M59071</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/31808/sunilb2.html" nodeid="31808"&gt;@Sunil B2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It actually turns out that your SQL imported value corresponds to 420 years, 228 days, 8 hours, 29 minutes, and 50.237 seconds. This is the amount of time that has elapsed since January 1, 1601 12:00:00 AM, which is the earliest time/date currently allowed by FlexSim. My guess would be that FlexSim produces the time/date format by adding the EventTime in seconds to that initial value or something along those lines.&lt;/P&gt;&lt;P&gt;Does this address your question?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Aug 2021 16:55:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555392#M59071</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2021-08-18T16:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: SQL date/time import issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555393#M59072</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Ryan
 &lt;P&gt;No. Why did DB import offset by 420 years is the issue?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Aug 2021 23:33:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555393#M59072</guid>
      <dc:creator>sunil_b2</dc:creator>
      <dc:date>2021-08-18T23:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL date/time import issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555394#M59073</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;I'm sorry for the misunderstanding. The difference between the Excel value and the SQL DB imported value is what date/time they are treating as zero and the units they are using to measure time.&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;Excel is using 12/30/1899 0:00:00 as its "zero-time" and is measuring the time since then in days. &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;FlexSim (and apparently the SQL DB, at least when imported) uses 1/1/1601 0:00:00 as its "zero-time" and measures the time since then in seconds.&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Aug 2021 16:05:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555394#M59073</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2021-08-19T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL date/time import issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555395#M59074</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I'm attaching a model that just has a couple scripts in it. One of them converts a time into a date/time from Excel format, and the other in FlexSim format. But, they both output the same date.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/42844-sql-datetime-convert.fsm" target="_blank"&gt;SQL DateTime Convert.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Aug 2021 19:28:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555395#M59074</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2021-08-19T19:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQL date/time import issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555396#M59075</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/31808/sunilb2.html" nodeid="31808"&gt;@sunil.b2&lt;/A&gt;, was Ryan Clark's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Aug 2021 19:45:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555396#M59075</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2021-08-23T19:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL date/time import issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555397#M59076</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;It seems to be a bug in Flexsim .. When I import into excel from MSSQL the date/time come correctly without any offset. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:23:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/sql-date-time-import-issue/m-p/13555397#M59076</guid>
      <dc:creator>sunil_b2</dc:creator>
      <dc:date>2021-09-01T16:23:41Z</dc:date>
    </item>
  </channel>
</rss>

