![]() |
Getting a Card8 into a Time Format in CML - Printable Version +- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums) +-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3) +--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9) +--- Thread: Getting a Card8 into a Time Format in CML (/showthread.php?tid=10790) |
Getting a Card8 into a Time Format in CML - kblagron - 03-14-2019 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. RE: Getting a Card8 into a Time Format in CML - Dean Roddey - 03-14-2019 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. RE: Getting a Card8 into a Time Format in CML - kblagron - 03-14-2019 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. |