Mail Archives: djgpp/1999/08/02/00:35:18
Rich wrote:
>
> I propose, in the interest of avoid harse comments from the more
> "seasoned" C/C++ users, that perhaps we should create a NEW
> newsgroup
> comp.os.msdos.djgpp.beginner
> and they in there, new comers can be treated with the proper
> respect due them.
New comers are never treated harshly in this newsgroup. Considering
that this news group has a fantastic FAQ, I don't think a "beginner"
newsgroup would be necessary. And in general a group for "beginner"s
would never work: who's going to ANSWER all the beginner questions?
> I still would like to see a working example of strftime
> since I haven't been successful getting the LIBC.hlp
> example to work for me yet.
time_t now;
char buf[100];
time(&now);
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&now));
This should give you something like "1999-08-01 22:59:56".
--
Weiqi Gao
weiqigao AT a DOT crl DOT com
- Raw text -