Crestron simpl plus language ref 사용자 설명서
Software Crestron
SIMPL+
®
130
z SIMPL+
®
Language Reference Guide - DOC. 5797G
FileGetHourNum
Name:
FileGetHourNum
Syntax:
SIGNED_INTEGER FileGetHourNum(FILEINFO Info);
Description:
Returns an integer corresponding to the number of hours in the time of the file.
Parameters:
INFO – structure containing the information about a found file (refer to "FindFirst"
on page
on page
for description).
Return Value:
The number of hours from 0 to 23 (24-hour time format).
Example:
)
INTEGER NumHours;
FILE_INFO FileInfo;
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst(“*.dat”, FileInfo );
WHILE (Found = 0)
{
NumHours = FileGetHourNum(FileInfo);
PRINT ( “Hours of file time = %d\n”, NumHours);
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 )
PRINT ( “Error in closing find operation\n” );
EndFileOperations();
An example output of this would be “Hours of file time = 22”.
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only