Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Date-Time Question

@ DJ_Sures
What exactly does CDateTime() do? I thought it converted a date-time string into a standard time stamp (a double) but that does not appear to be the case.

Thanks


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates with ARC Early Access edition. You'll have everything that's needed to unleash your robot's potential!

PRO
Synthiam
#1  
Try this example...

Code:


$x = "March 12, 2014"

$y = cdatetime($x)

print($y)



output:

Quote:


Start
1: $x = "March 12, 2014"
3: $y = cdatetime($x)
5: print($y)
> 3/12/2014 12:00:00 AM
Done (00:00:00.0156333)