now = localtime(time()); timestamp = strftime("%Y%m%d%H%M%S", now); printf("%s",timestamp); file_copy("/host/various/techsupport",sprintf("ts_%s.zip",timestamp));