Version: 2.1.0.21

cybox.common.datetimewithprecision module

class cybox.common.datetimewithprecision.DateTimeWithPrecision(value=None, precision='second')[source]

Bases: mixbox.entities.Entity

XML binding class: cybox.bindings.cybox_common.DateTimeWithPrecisionType
precision
XML Binding class name: precision
Dictionary key name: precision
to_dict()[source]
value
XML Binding class name: valueOf_
Dictionary key name: value
class cybox.common.datetimewithprecision.DateWithPrecision(value=None, precision='day')[source]

Bases: mixbox.entities.Entity

XML binding class: cybox.bindings.cybox_common.DateWithPrecisionType
precision
XML Binding class name: precision
Dictionary key name: precision
to_dict()[source]
value
XML Binding class name: valueOf_
Dictionary key name: value
cybox.common.datetimewithprecision.validate_date_precision(instance, value)[source]
cybox.common.datetimewithprecision.validate_datetime_precision(instance, value)[source]
cybox.common.datetimewithprecision.validate_time_precision(instance, value)[source]