This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Add integers to given date?
- To: help-gcc at gnu dot org
- Subject: Re: Add integers to given date?
- From: n8tm at aol dot comnojunk (Tim Prince)
- Date: 07 Nov 1999 00:03:01 GMT
- Newsgroups: gnu.gcc.help
- Organization: AOL http://www.aol.com
- References: <0Q2V3.458$k61.41250@typhoon-sf.snfc21.pbi.net>
- Xref: wodc7nx0 gnu.gcc.help:1706
>a method to add a number of days to a given date in c
from Plauger, "The Standard C Library,"
"..the only reliable way to modify a calendar time is to convert it to a
broken-down time by calling localtime(), modify the appropriate members, then
convert the result back to a calendar time by calling mktime()."
So I hope that someone can explain a good way around this problem.
Tim Prince
tprince@computer.org