Blame view

tools/scripts/daybefore2after.sh 271 Bytes
e6be5137b   Jean-François Rey   reinitialized pro...
1
2
3
4
5
6
7
8
9
  #!/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