Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Bob_Zimmerman
Authority
Authority

Time Object Documentation Issue

'add time' and 'set time' say they accept a list of objects in the hours-ranges property, but they don't say:

  • You can only include three objects
  • Index is optional (and will be populated from the order of the objects if it isn't present)
  • Index is only allowed to be 0, 1, 2, or 3
  • Index 0 is allowed, but appears to work like leaving the index out of the object entirely. The object's index is determined by its placement in the hours-ranges list.
  • If two hours-ranges objects are given the same index, the later object overwrites the first one, even when provided together
4 Replies
PhoneBoy
Admin
Admin

Given how time objects are constructed I’m not surprised those limitations exist.
They should be documented, though.
@Omer_Kleinstern 

0 Kudos
Bob_Zimmerman
Authority
Authority

Yeah, I definitely get it. For this, I'm only concerned with documentation for people who come along later.

I think this is the only list I've run into which only accepts a certain number of objects. Also I think it's the only list I've seen where members can be given an index. Not surprising that rare situations have unusual edge cases.

0 Kudos
PhoneBoy
Admin
Admin

I'm with you on the documentation being accurate. 🙂

0 Kudos
Tal_Paz-Fridman
Employee
Employee

Thank you for the input; I've opened an issue for R&D to look at it.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events