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
  What would the proper trigger to be for a time or a X min before sundown? ghurty 1 334 01-10-2019, 10:08 AM
Last Post: Dean Roddey
  GetCurMillis immune to system time change? rbroders 6 603 12-09-2018, 02:58 PM
Last Post: rbroders
  Down time today Dean Roddey 0 391 11-19-2018, 05:07 PM
Last Post: Dean Roddey
  Nice job on the scaling! 1 template for the 1st time! IVB 0 638 07-15-2018, 04:38 PM
Last Post: IVB
  Dim over time potts.mike 8 2,397 04-14-2018, 08:57 AM
Last Post: Dean Roddey
  time format in 5.0 lleo 2 1,445 03-14-2017, 12:00 PM
Last Post: lleo
  'Field Time Text' Widget showing wrong day/time? Sendero 1 1,476 11-28-2015, 03:52 PM
Last Post: Dean Roddey
  data logging time values znelbok 5 2,157 10-23-2015, 06:46 PM
Last Post: Dean Roddey
  Mixing text with %(z) in the field time widget dlmorgan999 3 2,046 07-17-2015, 12:43 PM
Last Post: dlmorgan999
  Time Stamp and SetNowPlus zra 2 1,490 06-11-2015, 06:25 PM
Last Post: zra

Forum Jump:


Users browsing this thread: 1 Guest(s)