add strptime to script engine
This commit is contained in:
parent
59e6ee2c8b
commit
8cc59eb337
|
@ -4,6 +4,7 @@ import json
|
|||
import logging
|
||||
import os
|
||||
import time
|
||||
import _strptime # type: ignore
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
from typing import Callable
|
||||
|
@ -95,6 +96,7 @@ DEFAULT_GLOBALS.update(
|
|||
"datetime": datetime,
|
||||
"time": time,
|
||||
"decimal": decimal,
|
||||
"_strptime": _strptime,
|
||||
}
|
||||
)
|
||||
# This will overwrite the standard builtins
|
||||
|
|
Loading…
Reference in New Issue