Translations:Macros/Python Guide/Calling Python from Basic/7/en

From The Document Foundation Wiki
Jump to navigation Jump to search
oScriptProvider = ThisComponent.getScriptProvider()
oScript = oScriptProvider.getScript("vnd.sun.star.script:utcNow.py$utcNow?language=Python&location=user")
UtcNow = oScript.invoke(array(), array(), array())