mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-16 20:52:08 +08:00
Render FILETIME fractions at their 100-nanosecond precision
AI-generated by OpenAI Codex. Remove AI-generated unit test changes from the submitted diff per Ghidra contributor guidance.
This commit is contained in:
+2
-2
@@ -83,8 +83,8 @@ public class FileTimeDataType extends BuiltIn {
|
||||
long numMilliSeconds = numTicks / 10000;
|
||||
long start = 0 - epochData.getTime();
|
||||
Date date = new Date(numMilliSeconds - start);
|
||||
long fractionalPartPlus1e8 = numTicks % 10000000 + 100000000;
|
||||
String fractionalPart = Long.toString(fractionalPartPlus1e8).substring(1);
|
||||
long fractionalPartPlus1e7 = numTicks % 10000000 + 10000000;
|
||||
String fractionalPart = Long.toString(fractionalPartPlus1e7).substring(1);
|
||||
return formatter.format(date) + "." + fractionalPart + " UTC";
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user