Forum Discussion

Dimitry36's avatar
Dimitry36
Copper Contributor
Sep 06, 2022

Help. It is necessary to make a rule that will work in a certain range of time

Hello!    It is necessary to make a rule that will work in a certain range of time.  e.g. every day from 21:00 to 00:00 or from 21:00 to the next morning 06:00.  I tried to do it through the tran...
  • GBushey's avatar
    GBushey
    Sep 06, 2022

    Dimitry36 You would need to do something like this to get the UTC equivalent of 0800 today

    let dt = now();
    print todatetime(strcat(datetime_part("month", dt),'/',datetime_part("day", dt),'/',datetime_part("year", dt), ' 08:00:00.000 AM'))

Resources