Location.Mode Change time

Is there a way to get the time when mode was changed last ? I was hoping for something on the Location object or the Location.currentMode object. Couldn't find anything.

Is creating a virtual switch and switching it on the only way to get the timestamp?