%d UNIX outputs the UNIX time in seconds. %d UNIX_MILLIS outputs the UNIX time in milliseconds. The UNIX time is the primary difference, in seconds for UNIX and in milliseconds for UNIX_MILLIS, in between the current time and midnight, January 1, 1970 UTC. While enough time device is milliseconds, the granularity is determined by the operating prog