On Mon, 23 Mar 1998, Michael Beattie wrote: > Cant help jumping in, is there an easy way to add/subtract times from the > output of "date"??? > Or do you mean that the time-stamp file would be null length and use its > creation time? even then, how can you work out the time since creation?
I'm thinking C... use time_t, and add and substract that. strftime is your friend here. From the shell, use date with some funky formating (something like "date +%Y%m%d%H%M.%S"). You man add and substract that, and convert it to another format. And yes, for what I asked, it would be a null file, and use creation date for reference. Marcelo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]