Implement slurm_ctime which is like ctime without the \n at the end.