Jump to content

hugo

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by hugo

  1. Hi Glen, I have been using the DBWrite step in my current model with MySQL. It works like a charm, but it slows the model down considerably. (Can take almost 50% to 70% more time) Is there any reason why it is slowing the model down so much? Any work around suggestions? Thank you and regards, H
  2. Hi, Can any of these methods be used to write time series data during the simulation run and then at the en of the simulation write it into a database? Thanks, H
  3. Hi all, Made a mistake. The right code is: String.Substring(DateTime.ToString(TimeNow), 7, 4) + "-" + String.Substring(DateTime.ToString(TimeNow), 1, 2) + "-" + String.Substring(DateTime.ToString(TimeNow), 4, 2) + " " + String.Substring(String.FromDateTime(TimeNow), 12, Antecedently swapped the Date and Months around. H
  4. Hi all, Thanks to those for showing the building blocks of Date Time conversions. Here is an additional expression. If you need to import a Time and Date into MySQL the following expression will convert the Simio Date Time format to the MySQL format. String.Substring(DateTime.ToString(TimeNow), 7, 4) + "-" + String.Substring(DateTime.ToString(TimeNow), 4, 2) + "-" + String.Substring(DateTime.ToString(TimeNow), 1, 2) + " " + String.Substring(String.FromDateTime(TimeNow), 12, {See corrected posting below} Hope it helps. Regards, Hugo
×
×
  • Create New...