Originally Posted by stanandjan:
“Very interesting ..That would be 4.00AM BST.. i had never read the detail that the updating was relative to Greenwich i assumed as possibly other do that it was 0300 local civil time.
Always possible that we had a mini power cut I suppose..
How does one read the Time stamp please?
Stan”
I slighty mislead you - I am in a CET time zone so I see it as 04:01 and incorrectly adjusted. The GMT timestamp would be 02:01 (03:01 BST).
Unless you have raydons addon's for ftp or telnet you can only see what the HDR shows you (UK LOCAL). You will see however that after summertime ends the previous summertime housekeeping timestamp is then.1 hoiur different.
I use the following logic to indentify the boot for the Housekeeping run which occurs at exacly 03:00 UK Local.
Code:
# Assume if it's 03:00 (02:00 GMT when BST active) that this may be the housekeeping run
if [ `/opt/bin/date "+%H"` -eq "02" ] || [ `/opt/bin/date "+%H"` -eq "03" ]
then
if [ `/opt/bin/date "+%M"` -eq "00" ]
then
# Work out start dates for summmer and winter time
YEAR=`/opt/bin/date "+%Y"` DAY=`/opt/bin/date "+%d"` HOUR="0000" TDAY=31 MTH1="03" MTH2="10" DATE=`date "+%Y%m%d"`
while [ $TDAY -gt 24 ]
do
if [ `/opt/bin/date "+%w" -d $YEAR$MTH1$TDAY$HOUR` -eq 0 ]; then
SS=$YEAR$MTH1$TDAY
fi
if [ `/opt/bin/date "+%w" -d $YEAR$MTH2$TDAY$HOUR` -eq 0 ]; then
WS=$YEAR$MTH2$TDAY
fi
TDAY=`/opt/bin/expr $TDAY - 1`
done
[ $DATE -ge $SS ] && [ $DATE -lt $WS ] && GMT=2 || GMT=3
# Create or remove the HouseKeeper Flag file
if [ `/opt/bin/date "+%H"` -eq $GMT ]
then
touch /opt/etc/HouseKeeper
fi
fi
else
[ -f /opt/etc/HouseKeeper ] && rm /opt/etc/HouseKeeper
fi
I guess putting the internal clock back half way through a programme is not easy, so keep to GMT internally and adjust what you display is simpler (i.e. what all PC's do).