🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ba.php
Article #70

Re: Subtract one day

#70
From: Cengiz Sahin
Date: Thu, 18 May 2000 00:00
18 lines
1341 bytes
"Jose Luis Rodr�guez Sevilla" wrote:
> 
> I have this variables:
> 
> $tm = time();
> 
> How i can subtract one day?

	You may subtract the day from the $tm variable as it is a
representation
	of past seconds since January 1 1970 00:00:00 GMT
	So: 
	$NUMSECONDS_PER_DAY = 3600 * 24;
	$tm = $tm - ($NumDays * $NUMSECONDS_PER_DAY);

	This should work IMHO

Cengiz Sahin
Technical Details
Message-ID: <3923E58F.4359F94B@sahinc.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8g0l6l$m2$1@talia.mad.ttd.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10f92b,2b436362de496d64
X-Google-Attributes: gid10f92b,public
X-Google-Thread: 10b1d3,2b436362de496d64
X-Google-Attributes: gid10b1d3,public
X-Google-Thread: 10ce1c,2b436362de496d64
X-Google-Attributes: gid10ce1c,public
X-Google-Thread: 1148a8,2b436362de496d64
X-Google-Attributes: gid1148a8,public
From: Cengiz Sahin <Cengiz@sahinc.de>
Subject: Re: Subtract one day
Date: 2000/05/18
Message-ID: <3923E58F.4359F94B@sahinc.de>
X-Deja-AN: 624962551
Cache-Post-Path: DS9.ai-lab.fh-furtwangen.de!unknown@shad.ghb.fh-furtwangen.de
Content-Transfer-Encoding: 8bit
References: <8g0l6l$m2$1@talia.mad.ttd.net>
X-Accept-Language: de,en,tr
Content-Type: text/plain; charset=iso-8859-1
Organization: Fachhochschule Furtwangen
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Mime-Version: 1.0
Newsgroups: ba.php,de.comp.lang.php,fr.comp.infosystemes.www.auteurs.php,ufra.lists.php