And what game?
I think you can use /played in the console it will tell you how much that character has been played. I did it once it came out in years scale too
Yup, that’s what I used to get the number - along with an addon that saves all the data from different characters and sums up the played time of all of them. Last time I checked it showed over 1200 days (=28 800 hours) for me - but it’s been a while since I checked the total, and it doesn’t include characters in Classic (or deleted characters). So I just rounded it to 30k hours, close enough.
My most played character is my shaman, with 450 days (~11k hours) played - it was my main character from TBC to WoD (from 2007 to early 2015). Current main is Druid with 240 days (~6k hours). So these two characters alone are more than half of my total played time. :D