logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

stat_mtime (263B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. case "$(uname -s)" in
  5. FreeBSD) stat -f%Sm -t'%F %T%z' "$@" ;;
  6. *BSD) stat -f%Sm -t'%F %T.%f%z' "$@" ;;
  7. *) stat -c%y "$@" ;;
  8. esac