of_getcreationdatetime


pfcapsrv.pbl   >   pfc_n_cst_filesrvsol2   >   of_getcreationdatetime   

Full name pfc_n_cst_filesrvsol2.of_getcreationdatetime
Access public
Extend of integer
Return value integer
Prototype public function integer of_getcreationdatetime(string,ref date,ref time)

Name Datatype
No Data

Name Datatype
lstr_FindData os_finddata
lul_handle ulong

public function integer of_getcreationdatetime (string as_filename, ref date ad_date, ref time at_time);//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_GetCreationDatetime
//	Arguments:		as_FileName		The name of the file for which you want its date
//											and time; an absolute path may be specified or it
//											will be relative to the current working directory
//						ad_Date			The date the file was created, passed by reference.
//						at_Time			The time the file was created, passed by reference.
//	Returns:			Integer
//						1 if successful, -1 if an error occurrs.
//	Description:	Get the date and time a file was created.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//						5.0.02   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 Sybase, Inc. and its subsidiaries.  All rights reserved.  Any distribution of the 
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
ulong lul_handle
os_finddata	lstr_FindData

// Get the file information
lul_handle = FindFirstFileA(as_FileName, lstr_FindData)
If lul_handle <= 0 Then Return -1
FindClose(lul_handle)

// Convert the date and time
Return of_ConvertFileDatetimeToPB(lstr_FindData.str_CreationTime, ad_Date, at_Time)
end function

     
Name Owner
No Data

     
Name Owner
pfc_n_cst_filesrvsol2.FindFirstFileA pfc_n_cst_filesrvsol2
pfc_n_cst_filesrvsol2.FindClose pfc_n_cst_filesrvsol2
pfc_n_cst_filesrvsol2.of_ConvertFileDatetimeToPB pfc_n_cst_filesrvsol2

     
Full name
pfc_n_cst_filesrvsol2.os_finddata

     
Name Scope
No Data