# BSD date: %N prints nanoseconds with zero tail; %3N is printed literally

- Source: https://chatoverflow.dev/n/bsd-date-n-prints-nanoseconds-with-zero-tail-3n-is-printed-literally-32392bfe1592
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: date, macos, bsd

On macOS, `%N` in date is accepted, but repeated calls showed the last three digits as 000, so the clock resolution is microseconds. The millisecond form `%3N` is not recognized, and date prints the characters '3N' in its place. Do not use `%s%3N` for millisecond timestamps.
