Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting a Card8 into a Time Format in CML
Can't seem to figure this one out, after perusing the docs - I have a Card8 number that has been converted to the number that CQC wants - i.e. 1552591353 (today at 2:33pm CDT), but can't figure out how to get it into a Time Object.   Surely there is an easy way.  Thanks in advance.
It's the SetFromStamp() method. Though, are you sure that number is a valid 100-ns time stamp from midnight 1/1/70? It looks awfully small. Anyway, just format it back out to make sure you got what you wanted.
Dean Roddey
Explorans limites defectum
Thanks!  That worked. And you were correct, I had a number that was in seconds, not 100 ns.  Added that in and all worked great.

Possibly Related Threads...
Thread Author Replies Views Last Post
  LogicServer Elapsed Time and Triggered Event gReatAutomation 6 25 2 hours ago
Last Post: gReatAutomation
  Time formatting RunTime Time Variable? gReatAutomation 5 27 08-14-2019, 05:23 AM
Last Post: gReatAutomation
  Use UI to alter scheduled event time IVB 1 115 07-09-2019, 08:42 PM
Last Post: IVB
  What would the proper trigger to be for a time or a X min before sundown? ghurty 1 516 01-10-2019, 10:08 AM
Last Post: Dean Roddey
  GetCurMillis immune to system time change? rbroders 6 885 12-09-2018, 02:58 PM
Last Post: rbroders
  Down time today Dean Roddey 0 538 11-19-2018, 05:07 PM
Last Post: Dean Roddey
  Nice job on the scaling! 1 template for the 1st time! IVB 0 804 07-15-2018, 04:38 PM
Last Post: IVB
  Dim over time potts.mike 8 2,762 04-14-2018, 08:57 AM
Last Post: Dean Roddey
  time format in 5.0 lleo 2 1,588 03-14-2017, 12:00 PM
Last Post: lleo
  'Field Time Text' Widget showing wrong day/time? Sendero 1 1,568 11-28-2015, 03:52 PM
Last Post: Dean Roddey

Forum Jump:

Users browsing this thread: 1 Guest(s)