API Time interval formatting

Console command is:
/tool user-manager profile print detail

The return set of properties contains “validity=5m”, questions is how to get machine-readable format like “00:05:00”?

You have to “manually” parse it out after retrieving it.

My API client has a convenient Util::parseValue() function for similar scenarios (though not exactly: you get PHP’s DateTime object, which you can then format however you desire…), but if you’re using another language or API client, you’d need to make yourself an equivalent.

Also I’m noticed that the “getall” command returns the right format i.e. “00:05:00” but in my case “getall” it’s not a way out