#!/usr/bin/python3

# pylint: disable=wrong-import-position

"""Report the age of the filename(s) listed in sys.argv[1:]."""

import os
import sys
import time

sys.path.append('/usr/local/lib')

import modunits  # noqa: E402


def main():
    """Get things started."""
    for filename in sys.argv[1:]:

        stat_result = os.stat(filename)

        seconds_old = time.time() - stat_result.st_mtime

        print(
            seconds_old,
            modunits.modunits('time', seconds_old, detail='two-highest', reverse=True, units='unabbreviated'),
            filename,
            )


main()