SQLite has a time()
function that enables you to return a time value based on a time string and any modifiers.
It returns the time in this format: HH:MM:SS
To use this function, you need to provide a time string, plus any (optional) modifiers. A modifier allows you to change the time, such as add a number of hours, set it to local time, etc
Continue reading