Player Facing Activity Checking

I’m wanting to find a way that a player could in-game check their hours of activity on the server. Does anyone know of a way that could give them this ability?

Ie: in game they could do /playtime and something pops up to tell them they have x amount of hours