extract_msg.null_date Module

Module contents

class extract_msg.null_date.NullDate[source]

Bases: datetime

Version of datetime.datetime intended to represent a value of NULL.

Some properties use different values for a null date, and those need to be differentiated when packing the data back into an MSG file, which is why this class exists. Comparisons between NullDate instances will always say the two dates are equal.

Attribute filetime:

An optional value that can be set to the filetime a null date should convert back to.

filetime: int | None = None