Need Help with KornShell script

I need a KornShell script that will, among all the users currently logged on to the system, find a slot of one hour that contains the most number of users. I know how to list all the users currently logged on but how do I do anything with the times that are listed? Please help, thanks.

you can use cron and use the wc command send the output to a log for every hour then at the end of the day just get sort the file and you should have the largest number at the bottom.

thats prolly the long way.

personaly i would look into sar or your OS audit/accounting program i am sure it has to be covered in there.