Hi, You could create a dynamic library that replaces necessary system calls, like calls to time() or gettimeofday(), and link it or load it to your application with LD_LIBRARY_PRELOAD environment variable. libc versions of these syscalls are weak symbols and user libraries override them. Jaakko
From: honey bajaj [mailto:honeybajaj1@rediffmail.com] Sent: Tuesday, May 25, 2010 3:36 To: tz@lecserver.nci.nih.gov Subject: Timezone option
Hi,
I have a testing requirement which needs to alter the system date to a couple of days ahead of current date. I am wondering if its possible to have a custom timezone which can provide this date change ability to drift the current time to couple of days ahead by setting the TZ environment variable.
Regards,
-- Foreca Ltd Jaakko.Hyvatti@foreca.com Tammasaarenkatu 5, FI-00180 Helsinki, Finland http://www.foreca.com