Is there something like "Second last" changed for states in templates

Hi all,
is there something like “Second last” changed for states in templates or the possibility to get the time of all changes of the state as something like an array?
Thank in advance
Eric