New function ltime() returns a struct tm of the current local time.