I haven't seen anything specific to the format of these time tokens, but the firewall add-to-address-list timeout is documented here:
http://wiki.mikrotik.com/wiki/Manual:IP ... Properties
You got me interested, so I played around with it and here's what I've found:
It seems to take the same format as any other similar duration-related input I've encountered:
a raw number is interpreted as seconds
You can specify a number as another duration with tokens:
s = seconds (default)
m = minutes
h = hours
d = days
w = weeks
You can combine them in any order - whitespace is ignored: eg: "2s 2h 2w"
tokens can be in any order (5s4m3h2d1w also works)
Days and weeks just get added together. If you specify 1w8d, this is the same as 2w1d
The last value specified may be in h
s format or in h:m (omit seconds)
Interestingly, if you mix and match, they just get added:
"1d 2h 12:30" -> "1d 14:30:00"
Values larger than 536870911 seconds are stored and tracked but when displayed show as 0sec.
(248 days, 13:13:55)
The maximum value is 4294967295 seconds (which is the maximum 32-bit value)
This decodes to: 7101w3d6h28m15s as the largest value....
(7101 weeks is ~136 years counting for leap years, by the way)