84a18eb62190549404c86f1082ac571fa035f8b0
[openwrt/staging/jogo.git] / scripts / portable_date.sh
1 #!/bin/sh
2
3 case $(uname) in
4 NetBSD|OpenBSD|DragonFly|FreeBSD|Darwin)
5 date -r $1 $2
6 ;;
7 *)
8 date -d @$1 $2
9 esac
10
11 exit $?