peterw;414934 Wrote: > use (int(($noonThen - $noonToday + 0.25)/3600) % 24) to see if there's > a time change
Or (duh!) just compare the localtime offsets for $noonThen and $noonToday. Wake up an hour early if fall-back detected. Otherwise wake on time (better to wake an hour early on spring-forward than wake late b/c the other OS updated the hwclock). -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock ------------------------------------------------------------------------ peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=62339 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
