using Locutusofborgs code
i would change it to this
on *:START: { timerupd -o 00:01 1 1 updateme }
;
alias updateme {
; check to make sure it's not in the same month we already added for.
if ($date(mm) != %lastmonth) {
inc %yeartotal %monthtotal
unset %monthtotal
set %lastmonth $date(mm)
}
}
this should work even if you play giggy with your date, it just goes off at 00:01 as before, but if the %lastmonth (aka the last month the yearly total was added to) is not this month, well add to the total again, since we dont know what your doing with the yearly total, its really just a grand total, rather than a yearly one.