The following example gets the time as a time_t structure and converts it to a tm structure, gmt, in Coordinated Universal Time. asctime then takes gmt and converts it to a string.
struct tm *gmt;
gmt = (struct tm *)gmtime(&t);
lr_message ("Coordinated universal time:\t\t%s", asctime(gmt));
Coordinated universal time: Sun Apr 21 15:31:06 2002