Miscellaneous Utility Plugin icon Miscellaneous Utility Plugin — ARC utilities: DataQuery for SQL/ODBC/OLEDB/Excel with parameterized queries returning array variables; Ticks/Millis timing functions. Try it →
Asked — Edited
1 Participant

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

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

Try this example...


$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)