blob: 84b56382e0af941a9b2b8e73457839d4600d9341 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2
3case $(uname) in
4 NetBSD|OpenBSD|DragonFly|FreeBSD|Darwin)
5 date -j -f "%Y-%m-%d %H:%M:%S %z" "$1" "$2" 2>/dev/null
6 ;;
7 *)
8 date -d "$1" "$2"
9esac
10
11exit $?