Can the Screen Time API be used to detect user login session time on macOS from login to logout?

I want to get the length of time users are logged into to their macOS account. Is this possible using the Screen Time API?

ScreenTime API is only available on iOS, which means anything related to macOS won't be supported. If you would like to see macOS support, please file a feedback with the details of the request. Thanks!

Can the Screen Time API be used to detect user login session time on macOS from login to logout?
 
 
Q