Second() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Retrieves the second part of a Time value as Float (0-59.999). You can call this function from the MapBasic window in MapInfo Pro.

Syntax

Second( Time )

Return Value

Number

Example

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

dim X as time
dim fSec as Float
X = CurDateTime()
fSec = Second(X)
Print fSec

See Also:

Hour() function, Minute() function