Open iambumblehead opened 3 months ago
opinion, the script could somehow detect which variant of either command is available on the system to give initial support for mac + linux and other systems could be supported later on somehow and/or an error message could be shown if neither variant has a supported call that returns timestamp
it makes no sense there are no posix solutions for getting (or working with) timestamps
stat command is demonstrated here as not reliable across different platforms https://stackoverflow.com/questions/43223874/extract-timestamps-for-files-in-a-folder-and-compare-them-against-date-field-in
ls command is also not reliable across different platforms https://serverfault.com/questions/60269/what-is-the-alternative-to-ls-time-style-full-iso-in-bsd