[lib/funcs] make timestamp show year/date and misc cleanup