sub getFileTime {
# Create a SYSTEMTIME object
my $wYear = '2099';
my $wMonth = '12';
my $wDayofWeek = '6';
my $wDay = '1';
my $wHour = '10';
my $wMin = '12';
my $wSec = '30';
my $wMilli = '0'; # Now, pack the object. The SYSTEMTIME object is basically 8 WORDs
# packed into a structure.
my $pSystemTime = pack("S8",$wYear,$wMonth,$wDayofWeek,$wDay,$wHour,$wMin, $wSec,$wMilli); # Convert the SYSTEMTIME to a FILETIME object
my $pFileTime = ' ' x 2 x 8;
if (SystemTimeToFileTime($pSystemTime,$pFileTime)) {
my ($low, $high) = unpack("L2", $pFileTime);
print "Got file time low $low\n";
print "Got file time high $high\n";
return ($low, $high);
} else {
print "Could not convert time: $!\n";
return (0,0);
}}