-
-
Notifications
You must be signed in to change notification settings - Fork 2
Parser: implement date and timestamp types #41
Copy link
Copy link
Labels
enhancementNew feature or requestNew feature or requestevaluatorRule evaluation engine and logicRule evaluation engine and logicparserMagic file parsing components and grammarMagic file parsing components and grammarpriority:normalStandard work itemStandard work item
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestevaluatorRule evaluation engine and logicRule evaluation engine and logicparserMagic file parsing components and grammarMagic file parsing components and grammarpriority:normalStandard work itemStandard work item
Type
Fields
Give feedbackNo fields configured for Feature.
Summary
Implement date/timestamp type specifiers:
date,ldate,bedate,beldate,ledate,leldate,qdate,qldate,beqdate,beqldate,leqdate,leqldate,medate,meldate.Context
Date types interpret byte sequences as Unix timestamps (seconds since epoch) and format them for display. 32-bit and 64-bit variants exist with various endianness options.
datetypes use UTC;ldatetypes use local time.Current state: No date types exist in
TypeKindor the parser.Acceptance Criteria
TypeKindextended withDateandQDatevariants (32-bit and 64-bit)Impact
MEDIUM - Used in archive formats (tar, cpio), filesystem images, and document metadata for creation/modification timestamps.
Files to Modify
src/parser/ast.rs- ExtendTypeKindenumsrc/parser/grammar.rs- Parse date specifierssrc/evaluator/types.rs- Implement timestamp reading and formattingReferences