projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ath25: add the small_Flash feature
[librecmc/librecmc.git]
/
scripts
/
portable_date.sh
1
#!/bin/sh
2
3
case $(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"
9
esac
10
11
exit $?