logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

stat_mtime (268B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017-2023 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