Date: Mon, 9 Feb 1998 08:20:44 +0200 (IST) From: Eli Zaretskii To: Jean-Luc Romano cc: djgpp AT delorie DOT com Subject: Re: Getting date and time In-Reply-To: <6bl7db$bou$2@herald.Mines.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 8 Feb 1998, Jean-Luc Romano wrote: > Say, does anyone know how to exctract the date and time so I can > output it back to the user? > > Something like: > > printf("Today's date is: %s %d, %d\n", getmonth(), getday(), getyear()); Use the library function `strftime'. It is described in the libc reference docs.