Unix Log out time

Hi,

Is there a way to find out the logout date for a user who has been logged in to the system for more than 1 day. For example, the below user as indicated by the "last" command had logged into the system on Mar 8 and he has been online for 2 days and 6:53 hour:min. So basically, he logged out from the system on Mar 10. Is there a way to calculate this in Perl? or any other command that gives the logout date as well.?

dpryor console Wed Mar 8 10:47 - 17:41 (2+06:53)

Does your system support last -F , this might be the output your after.

Please post your exact Operating System and version.
If your system has the fwtmp command you can read the timestamp directly from the wtmp file. The same timestamp which last used to calculate its values.