Future()

From: Date: Sun, 10 Sep 2000 10:31:45 +0000
Subject: Future()
Groups: php.dev 
Request: Send a blank email to php-dev+get-32815@lists.php.net to get a copy of this message
I wrote some function in php allowing this: printf("Today is: %s\n", Date("d/m/Y H:i", time())); printf("Tomorrow is: %s\n", Date("d/m/Y H:i", Future(time(), "1d"))); printf("Next week is: %s\n", Date("d/m/Y H:i", Future(time(),"1w"))); // also "1w2d4h2s" -> 1 week 2 days 4 hours 2 seconds I think it'd be nice to port to C, (I'm not sure wether PHP already has such a function) I don't have the time for it, if someone feels like it.. Lemme know if you wanna have the php version --CaPS

« previous php.dev (#32815) next »