info ls
mentions a --time-style=full-iso
option, with this description:
List timestamps in full using ISO 8601 date, time, and time
zone format with nanosecond precision, e.g., `2002-03-30
23:45:56.477817180 -0700'. This style is equivalent to
`+%Y-%m-%d %H:%M:%S.%N %z'.
This is useful because the time output includes all the
information that is available from the operating system. For
example, this can help explain `make''s behavior, since GNU
`make' uses the full timestamp to determine whether a file is
out of date.
(Your mileage may vary.)
Edited to add: Also, RFC 4122, which defines UUIDs, gives several algorithms for generating them, including a few "time-based" algorithms. These all require 100ns resolution. Since it would not make sense to offer a "tenths-of-microseconds" field, this requires a "nanoseconds" field, even if meaningful 1ns resolution is not offered.
(And I feel compelled to point out that, in the question you link to, the asker is actually only storing up to milliseconds in MongoDB. The question asks about "nanoseconds" only because that is the field that stores sub-second resolution.)