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