--- Michael Weiss <[EMAIL PROTECTED]> wrote: > Is there any way to calculate elapsed time? I am trying to write a > function to see how long has passed since a player has logged in. I > currently have 'finger' so I can see the time stamp of their last logoff. > I wanted to find a way to subtract that from the current system time to use > in a comparision check.... ie... see if its been more than 30 or 60 days > since a player logged in. I need to do this on a player by player basis > as part of a roster function.
man time man ctime man strftime Those should give you more than enough to do what you want. ~Kender ===== -----BEGIN GEEK CODE BLOCK----- Version 3.1 GCS/L/C/O d-(+) s++: a-- C+++$>++++ UBLS++++$ P+++(--)$ L+++>++++ E--- W+>++$ N !o K? w(--) !O M- !V PS+ PE(++) Y+ PGP->+ t+ 5 X+() R(+) tv+@ b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++ ------END GEEK CODE BLOCK------ __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com

