find oldest and newst date and time awk code example
Example: how to find the oldest files git
This emits // just a "last edit date" for each file, in an ISO format that sorts nicely.
git ls-tree -r --name-only HEAD | while read filename; do
echo "$(git log -1 --date=iso --format="%ad |" -- $filename) $filename"