%d UNIX outputs the UNIX time in seconds. %d UNIX_MILLIS outputs the UNIX time in milliseconds. The UNIX time is the difference, in seconds for UNIX and in milliseconds for UNIX_MILLIS, among The existing time and midnight, January 1, 1970 UTC. Although some time device is milliseconds, the granularity depends on the running process (Home windows).