patterns/zip: Added parsing of extra field (#182)

* zip pattern: Improved fallback method for finding eocd. Added test data to cover this edge case

* zip pattern: added parsing of extra field
This commit is contained in:
Hugo
2023-10-29 19:47:11 +01:00
committed by GitHub
parent e0a602c10a
commit 27e55d2e6d
3 changed files with 95 additions and 2 deletions

View File

@@ -155,6 +155,15 @@ namespace std::time {
return converter.time;
};
/**
Converts a FILETIME to unix time.
@param value The value to convert.
@return Timestamp formatted as unix time.
*/
fn filetime_to_unix(u64 value) {
return value / 10000000 - 11644473600;
};
/**
Formats a time according to the specified format string.
@param time The time to format.