Purpose
Returns the calculated age in the specified unit based on a given input date/time/datetime argument with respect to the current time period of the front time-series enabled map window. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
CurrentAge ( param1, startOrEnd, unit )
param1 (Date/Time/DateTime): First Input argument.
-
TRUE calculates the age based on start extent of current time period.
-
FALSE calculates the age based on end extent of current time period.
unit (String) - Date/Time/DateTime units: Should be based on the type of param1.
Date Units - day, week, month, year, century, decade.
Time Units - hr, min, sec.
Return Value
Float
Description
Returns the calculated age in the specified unit based on a given input date/time/datetime argument with respect to the current time period of the front time-series enabled map window.
Example
Update RiotsLondonMapped Set Duration = CurrentAge(CommittedFrom, TRUE, "hr") DropIndex Auto