RAD function: modtime

A RAD function that returns the last modified date and time of a record.

Function

modtime

Format

modtime($file)

Factors

  • Use this function to determine if a record has been modified before or after a specified time.
  • Use modtime(currec()) to return the last modified date and time for any record. You can also use this variation in queries to retrieve all records modified after a specified point in time.
  • The modtime function is not updated on clients when the records are updated on the server until after the records are selected again.

Examples

modtime($file) returns 1/10/96 12:15:17.

modtime(currec)>tod( )- '08:00:00' selects all records in a file that were added or updated in the last eight hours.