added 'to_pattern()' utility for pattern expressions; more information on patterning guide
parent
10149b9345
commit
cd81d97beb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue