Purpose
Returns the Time component of a DateTime. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
GetTime( DateTime )
Return Value
Example
Copy this example into the MapBasic window for a demonstration of this function.
dim dtX as datetime
dim Z as time
dtX = "03/07/2007 12:09:09.000 AM"
Z = GetTime(dtX)
Print FormatTime$(Z,"hh:mm:ss.fff tt")
See also:
Date and Time Functions, FormatDate$() function, FormatTime$() function, NumberToDateTime() function, GetDate() function