output time as string