Use the gettime module in ls.c.
authorJames Youngman <jay@gnu.org>
Sat, 16 Feb 2008 18:29:52 +0000 (19:29 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 16 Feb 2008 18:30:55 +0000 (19:30 +0100)
commit2c42c1c2cef2880e3d1653df371709669536adbb
treef1f8df6f044b829b61c89be2555e8bb7be10797c
parentcc8b73b1d9cb63c89a76db8ece8a699fb98fff1a
Use the gettime module in ls.c.

Implement TODO list item to make ls.c use the gettime module.
* TODO (ls): Now that we use gettime, remove the TODO entry.
* src/ls.c: Use timespec.h and the gettime module.
(current_time): Change type from time_t to struct timespec.
(current_time_ns): Removed.
(get_current_time): Removed.
(print_long_format): Remove when and when_ns, since we have
when_timespec anyway.  Change type of variable six_months_ago from
time_t to struct timespec.
TODO
src/ls.c