blark.transform.DateTime
- class blark.transform.DateTime(date: Date, time: TimeOfDay, meta: Meta | None = None)[source]
Bases:
Literal
Date and time literal value.
Lark grammar
This class is used by the following grammar rules:
date_and_time
date_and_time: ( "DATE_AND_TIME"i | "DT"i ) "#" _date_literal "-" _daytime
Methods
__init__
(date, time[, meta])from_lark
(year, month, day, hour, minute, second)Attributes
The time of day value.