dissect.target.plugins.os.unix.datetime

Module Contents

Classes

UnixDateTimePlugin

Generic implementation for datetime plugin.

class dissect.target.plugins.os.unix.datetime.UnixDateTimePlugin(target: dissect.target.target.Target)

Bases: dissect.target.plugins.os.default.datetime.DateTimePlugin

Generic implementation for datetime plugin.

__namespace__ = 'datetime'

Defines the plugin namespace.

check_compatible() None

Perform a compatibility check with the target.

This function should return None if the plugin is compatible with the current target (self.target). For example, check if a certain file exists. Otherwise it should raise an UnsupportedPluginError.

Raises:

UnsupportedPluginError – If the plugin could not be loaded.

tzinfo() datetime.tzinfo

Return a datetime.tzinfo of the current system timezone.