Antonio Linares wrote:Estimado José,
Aquí lo tienes. Lo incluimos para el próximo build de FWH:
function FW_FolderChanged( cFolderPath ) --> { nDay, nMonth, nYear, nHours, nMinutes, nSeconds }
- Code: Select all Expand view
#include "FiveWin.ch"
function Main()
XBrowse( FW_FolderChanged( "c:\fwh" ) )
return nil
#pragma BEGINDUMP
#include <Windows.h>
#include <hbapi.h>
HB_FUNC( FW_FOLDERCHANGED )
{
const char * folderPath = hb_parc( 1 );
FILETIME lastWriteTime;
WIN32_FILE_ATTRIBUTE_DATA fileAttributes;
SYSTEMTIME systemTime;
GetFileAttributesEx( folderPath, GetFileExInfoStandard, &fileAttributes );
lastWriteTime = fileAttributes.ftLastWriteTime;
FileTimeToSystemTime(&lastWriteTime, &systemTime);
hb_reta( 6 );
hb_storvnl( systemTime.wDay, -1, 1 );
hb_storvnl( systemTime.wMonth, -1, 2 );
hb_storvnl( systemTime.wYear, -1, 3 );
hb_storvnl( systemTime.wHour, -1, 4 );
hb_storvnl( systemTime.wMinute, -1, 5 );
hb_storvnl( systemTime.wSecond, -1, 6 );
}
#pragma ENDDUMP
Master Antonio,
Muchas Gracias. Funciona Muy bien, solo necesito resolver un pequeño detalle.
Me da el dato de la hora con la zona horaria de España. En mi caso, son 7 horas mas adelante que mi hora local.
Alguna manera de sincronizarlo con la hora de los demás países?