_getDT
Gathers details on a chosen number of Clockin entries, can be filtered by relation to flags or skipping an amount of entries beforehand.
Parameters
draw
A number assigned to each use of this function, increases by 1 per use. Useful when identifying recent versions of the desired data
length
The number of Clockins which will be checked and filtered
start
The amount of Clockins which will be skipped before a number of later Clockins are checked, relative to the "length" parameter
flag
An integer which, depending on its value, will filter User Clockins based on whether they are flagged: -1 => All User Clockins, regardless whether they are flagged or not 0 => Flagged Clockins are not included 1 => Only Flagged Clockins are included
Example
Results
On Success
In this example, there are two Clockin entries: One for the 31st of July 2023 with the ID "60001" and the note "Clockin Time Notes" within the Clockin time (06:30 to 16:30) One for the 7th of August 2023 with the ID "60002" and the note "Test Notes" for the whole Clockin entry (14:30 to 19:00) Neither are Flagged and all their times have 0 Lateness.
On Failure
If the "draw" parameter is not set:
Last updated