Forum Discussion
Thank you @koryknick but this sample shows how to pass a script file as a pipeline parameter,
Me I want to use a pipeline parameter inside a script. (Be able to reference a pipeline parametre from inside my javascript script)
To use a pipeline parameter within a Script Snap, see https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438163/Parameters+and+Fields#ParametersandFields-ScriptSnap
dateutil is not part of the python standard library, so it cannot be called from the Script.
Do something like
from datetime import datetime INCR_LOAD_START_TIME = "2017-08-27T00:00:00" start = datetime.strptime(INCR_LOAD_START_TIME, "%Y-%m-%dT%H:%M:%S")
Look at python - string to datetime with fractional seconds, on Google App Engine - Stack Overflow if you want to handle the milliseconds
Related Content
- 3 years ago