Functions hook

Use this hook to code (common) functions to use in the other hooks of the session extension. This helps you in reusing code and to keep the other hooks small and clear.

Example:

function string format.date(long i.date)
{
        return(utc.to.iso(i.date, UTC_ISO_DIFF))
}