Re: printing "today" and "today -30" from esqlC
Posted in 1998
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
On Wed, 17 Jun 1998, Sukumar Konduru wrote: > [...] > I would like to print the date values of "today - 1" and "today - 30". > > For example If they do query , it should display 06/16/98. > > [...] > > Is there any way I can print those without accessing database. We are > using C++ on AIX. Is there any function in AIX library. I want to > know any function that belongs to either ESQL/C, or C++. Function rtoday() returns today's date: long today = rtoday(); long yday = today - 1; long yday30 = today - 30; Function rfmtdate() formats dates. What's wrong with the ESQL/C manual? Yours, Jonathan Leffler (jleffler@informix.com) #include <witticism.h> Guardian of DBD::Informix -- see http://www.perl.com/CPAN