Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting a Card8 into a Time Format in CML
#1
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.
Reply
#2
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
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Triggered Event only works every second time znelbok 2 1,313 10-27-2020, 12:05 PM
Last Post: znelbok
  Handling Daylight Savings Time kblagron 10 3,368 03-17-2020, 07:35 AM
Last Post: Dean Roddey
  Timers Driver / Field Time Image / Seconds gReatAutomation 1 1,399 03-16-2020, 05:48 PM
Last Post: Dean Roddey
  LogicServer Elapsed Time and Triggered Event gReatAutomation 6 2,825 08-17-2019, 07:53 AM
Last Post: gReatAutomation
  Time formatting RunTime Time Variable? gReatAutomation 5 2,512 08-14-2019, 05:23 AM
Last Post: gReatAutomation
  Use UI to alter scheduled event time IVB 1 1,356 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 1,593 01-10-2019, 10:08 AM
Last Post: Dean Roddey
  GetCurMillis immune to system time change? rbroders 6 3,006 12-09-2018, 02:58 PM
Last Post: rbroders
  Down time today Dean Roddey 0 1,218 11-19-2018, 05:07 PM
Last Post: Dean Roddey
  Nice job on the scaling! 1 template for the 1st time! IVB 0 1,683 07-15-2018, 04:38 PM
Last Post: IVB

Forum Jump:


Users browsing this thread: 1 Guest(s)