Question
- When executing a script, is there a way to get the script's execution date and time in the process?
I know there is Current Date/Time logic, but I am concerned that there is a time lag between the actual script execution date/time and the date/time obtained by the logic.
- Is it possible to pass the start date and time of a file event job to a script executed by the job?
Answer
- There is no way to get the script's execution date and time.
As an alternative, it is possible to obtain a value close to the script execution date/time by placing Current Date/Time logic at the very beginning of a script to get the current date/time and assigning this in a script variable.
Note that there may be a difference between the actual date and time of script execution and the date and time obtained by the logic, depending on system's internal operating conditions and other factors.
An operation verification conducted by the Technical Support Center resulted a difference of up to 1 millisecond. However, this is just a reference value, as it may vary depending on the environment or other factors.
- In a file event job, it is not possible to pass the start date and time of the job to a script.
As an alternative, please consider the process to get current date and time at the beginning of the script executed by the job like above.
Current Date/Time
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/Now.htm
Related FAQs
Is there a function to get modification date and time of a file?
https://support.square.hulft.com/hc/articles/9465007824916
Comments
0 comments
Article is closed for comments.