- ND_TCHECK2(*cp, 4);
- t = EXTRACT_32BITS(cp);
- if (NULL == (tm = gmtime(&t)))
- ND_PRINT((ndo, ": gmtime() error"));
- else if (0 == strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm))
- ND_PRINT((ndo, ": strftime() error"));
- else
- ND_PRINT((ndo, ": %s UTC", buf));
- return 0;
+ t = GET_BE_U_4(cp);
+ ND_PRINT(": %s",
+ nd_format_time(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S UTC",
+ gmtime(&t)));
+ return;