tf_get_file_timestamp(), sf_get_file_timestamp()

Purpose

Obtains the last modification date and time for an open file

Syntax (CCOWN)

void tf_get_file_timestamp(int filenr, datetype *date, timetype *time)
void sf_get_file_timestamp(int filenr, datetype *date, timetype *time)

Syntax (DP4DBAPI)

BOOLEAN dp4_sf_get_file_timestamp(FCONN * fconn,datetype * date,timetype * time)

Parameters

int filenr

Handle to file, obtained by earlier call to tf_open() (or sf_open() for sf_ variant)

Parameters

FCONN * fconn

Handle to file, obtained by earlier call to dp4_sf_open()

 

datetype* date

Pointer to a variable to hold the last modification date of the file

 

timetype* time

Pointer to a variable to hold the last modification time of the file

Description

The tf_get_file_timestamp() function gets the last modification date and time of a file opened with tf_open(). For the DP4DBAPI version of the function the return value is TRUE if the function completed without error.