cvs.gedasymbols.org/archives/browse.cgi | search |
Date: | Mon, 9 Feb 1998 08:20:44 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
To: | Jean-Luc Romano <jromano AT slate DOT Mines DOT EDU> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Getting date and time |
In-Reply-To: | <6bl7db$bou$2@herald.Mines.EDU> |
Message-ID: | <Pine.SUN.3.91.980209082001.8259D-100000@is> |
MIME-Version: | 1.0 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |