[tz] How to compute the moment of the next DST change

Jaakko Hyvätti jaakko.hyvatti at foreca.com
Tue Apr 2 09:35:32 UTC 2013


Just in case the abbreviation does not change:

TIME1=$(date +%H%M)
TIME2=$(date -d week +%H%M)
TIME3=$(date +%H%M)
if [ $TIME1 != $TIME2 -a $TIME3 != $TIME2 ]
then
     echo clocks change next week
fi


-- 
Foreca Ltd                                           Jaakko.Hyvatti at foreca.com
Keilaranta 1, FI-02150 Espoo, Finland                http://www.foreca.com


More information about the tz mailing list