A JavaScript function that returns the current time with an optional offset.
Copy 'currentTime' function directly into your JavaScript file(s) where usage is required.
var time = currentTime(offset);
Function returns the current time in HH:MM:SS am/pm format. Specify an optional offset in seconds to subtract from the current time.