Time segment, borrowed from https://github.com/milkbikis/powerline-shell/pull/107