- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Time Object Documentation Issue
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Given how time objects are constructed I’m not surprised those limitations exist.
They should be documented, though.
@Omer_Kleinstern
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm with you on the documentation being accurate. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the input; I've opened an issue for R&D to look at it.
