added 'to_pattern()' utility for pattern expressions; more information on patterning guide

stix2.0
mbastian1135 2018-08-27 16:24:23 -04:00
parent 10149b9345
commit cd81d97beb
1 changed files with 32 additions and 32 deletions

View File

@ -40,7 +40,7 @@ class TimestampConstant(_Constant):
try:
self.value = parse_into_datetime(value)
except Exception:
raise ValueError("must be a datetime object or timestamp string.")
raise ValueError("Must be a datetime object or timestamp string.")
def __str__(self):
return "t%s" % repr(self.value)