Is there anyone know how to convert time to string with a defined format (in linux) ? In Unix, we can cftime() function, but I can't find it in Linux. Linux has ctime() and ctime_r() function, but we can't define the string format with those function.