Hello,
FYI, from the contestants for the octal fix, I've chosen to take Dan's
solution - not that I'd think it's the best, but it's simple and
mainly I'm taking other Dan's changes and I don't like solving
conflicts.
+ local secs=$1 tzhours=${2:0:3} tzmins=${2:0:1}${2:3} format=$3
+ # bash doesn't like leading zeros
+ [ "${tzhours:1:1}" = 0 ] && tzhours=${2:0:1}${2:2:1}
+ secs=$((secs + tzhours * 3600 + tzmins * 60))
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
<Espy> be careful, some twit might quote you out of context..