I want auto increment of session time
I want auto increment of session time

As in the above picture i have generate session time by login DT (-)minus time now. So i want that session time to auto change every second as time pass session time will increase.
Example:
First entry is alpha5, login DT is: 23/Dec 06:51 am, generated session time is 3D : 11H : 34M : 30S, i want that 3D : 11H : 34M : 30S to change every second like:
3D : 11H : 34M : 31S
3D : 11H : 34M : 32S
3D : 11H : 34M : 33S
etc
This discussion has been closed.
Replies
Hi, @allan can you guide me ?
I'm not Allan but I'll try to help
You would use the same techniques as I described in your other thread. Use
rows().every()
to iterate each row. Then inside the loop update the timestamp column. After the loop usedraw()
to redraw the table after all the updates. For example:http://live.datatables.net/voguseva/1/edit
Depending on your needs you may consider using the
selector-modifier
of{page:'current'}
to update only those rows being shown. Depending on the number of rows you have iterating the whole table might take too long.Kevin