05-04-2023 02:42 PM
Hi,
Does anyone know if/ how you can use the string from time() as a precondition in a sequence? My workplace has a 2 shift pattern, so for all intents, I want to use any time up to 0300 on day 2 as the same day as 0800 on day 1. I want to call a checkout sequence to run in the first test if the working day, so will use date() as a precondition as well.
I have tried using the val() function, but it doesn't recognise the hh:mm:ss format.
Thanks
Solved! Go to Solution.
05-05-2023 02:38 AM - edited 05-05-2023 02:42 AM
Get Date:
// Return Numberic:
Date(true, Locals.Year, Locals.Month, Locals.Day)
Get Time:
// Return Numberic:
Time(true, Locals.Hour, Locals.Minute, Locals.Second)
05-15-2023 01:39 AM
That's great, thank you