CurTime() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

Purpose

Returns the current time in hours, minutes, seconds, and milliseconds. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

CurTime()

Return Value

Time

Example

Copy this example into the MapBasic window for a demonstration of this function.

dim Y as time
Y = CurTime()
Print Y

See Also:

Date and Time Functions, Day() function, Format$() function, Month() function, StringToDate() function, Timer() function, Weekday() function, Year() function, CurDate() function, CurDateTime() function