Skip to main content
August 16, 2022
Question

Create Slots in time interval

  • August 16, 2022
  • 1 reply
  • 0 views

I want to Create time slots for specific interval and get a List of all slots (like 20 min or 30 min slot) for Interval.

    1 reply

    harshitb6843
    August 16, 2022

    a!localVariables(
      local!startTime: datetime(2022,8,16,12,00,00),
      local!slotInterval: 20,
      local!slots: 6,
      a!forEach(
        items: enumerate(local!slots),
        expression: local!startTime+intervalds(0,local!slotInterval*fv!item,0)
      )
    )