45 lines
632 B
Bash
45 lines
632 B
Bash
#!/bin/sh
|
|
|
|
DATE_ACTUELLE=`date '+%d/%m/%Y %H:%M:%S'`
|
|
echo "DATE_ACTUELLE="${DATE_ACTUELLE}
|
|
DATE_AUJOURDHUI=`date +%d`
|
|
DATE_VEILLE=$((${DATE_AUJOURDHUI} - 1))
|
|
|
|
echo "DATE_VEILLE="${DATE_VEILLE}
|
|
|
|
#JOUR=`date +%A`
|
|
JOUR="Monday"
|
|
|
|
echo ${JOUR};
|
|
|
|
if [ $JOUR == "Thursday" ];
|
|
then
|
|
{
|
|
echo "ON est jeudi !"
|
|
}
|
|
else
|
|
{
|
|
echo "ON n'est pas jeudi =( ! "
|
|
}
|
|
fi
|
|
|
|
|
|
|
|
# ts1=`date -d"${Date1}" +%Y%m%d%H%M%S`
|
|
# ts2=`date -d"${Date2}" +%Y%m%d%H%M%S`
|
|
# ts3=`date -d"${Date3}" +%Y%m%d%H%M%S`
|
|
|
|
# latest=ts1
|
|
|
|
# if [ $ts2 -gt $ts1 ]; then
|
|
# latest=ts2
|
|
# fi
|
|
|
|
# if [ $ts3 -gt $ts1 ]; then
|
|
# latest=ts3
|
|
# fi
|
|
|
|
|
|
|
|
#DATE=`date '+%H:%M:%S le %d:%m:%Y'`
|