From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076331021092.tru64-unix-managers.marc@archive.invalid> From: "SYSTEM SUPPORT" Date: Mon, 01 Apr 1996 11:58:00 +0000 To: tru64-unix-managers Subject: FWD: [S] How do I turn date values in C2 tcb auth files to meaningful dates? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076331021092 Forgive if this is repost, but I never saw that it got posted so I'm resending.... Many thanks to: Padraig Houlahan Kevin Hildebrand Randy M. Hayman Ross Alexander reeves@zk3.dec.com Yaacov Fenster Don Newcomer Tim Mooney Igor Natanzon Eric B. My Original question: >Hi, > >I'm running Digital UNIX 3.2C Enhanced Security. Does anyone know of an easy >way (or have a script) to turn those times in the /tcb/files/auth/[a-z]/* into a >valid date and time? An example date is 827953633 which converts to March 27, >1996 14:07:13 (or at least that's what shows up when I log in). > >What I'm looking to do is create a last login report that I can send to group >leaders. I want to flag accounts that haven't logged in 90 days in this report >so it's easier to spot inactive accounts. ============================================================================== As usual this list is great. I got lots of good help. Here's a copy of some C code from Kevin Hildebrand that does the trick! --------------------------------------------------------------------------- #include int main (int argc, char **argv) { time_t time; if (argc!=2) { printf ("usage: whenis