MCPcopy Create free account
hub / github.com/STIXProject/python-stix / ValidTime

Class ValidTime

stix/indicator/valid_time.py:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8from mixbox.entities import Entity
9
10class ValidTime(Entity):
11 _namespace = "http://docs.oasis-open.org/cti/ns/stix/indicator-1"
12 _binding = indicator_binding
13 _binding_class = _binding.ValidTimeType
14
15 start_time = fields.TypedField("Start_Time", DateTimeWithPrecision)
16 end_time = fields.TypedField("End_Time", DateTimeWithPrecision)
17
18 def __init__(self, start_time=None, end_time=None):
19 super(ValidTime, self).__init__()
20 self.start_time = start_time
21 self.end_time = end_time
22

Callers 1

test_datetime_formatMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_datetime_formatMethod · 0.72