#include #include int main(void) { time_t startt; char buf[100]; (void)strftime(buf, sizeof(buf) - 1, "%H:%M:%S %%Z=%Z %%z=%z", localtime(&startt)); printf("%s\n", buf); buf[0] = '\0'; (void)strftime(buf, sizeof(buf) - 1, "07:47:00 %Z=EST %z=-0500", localtime(&startt)); printf("%s\n", buf); return 0; }