daybefore2after.sh 271 Bytes
#!/bin/bash

year=`echo $1 | cut -c1,2`
mois=`echo $1 | cut -c3,4`
jour=`echo $1 | cut -c5,6`
year=20$year
hier=`date -d "$year-$mois-$jour - 1 days" +%Y-%m-%d`
demain=`date -d "$year-$mois-$jour + 1 days" +%Y-%m-%d`
echo ${hier}T00\\:00\\:01Z+TO+${demain}T23\\:59\\:59Z