Re: How to do Date Calculation

From: Date: Thu, 10 Oct 2002 14:29:43 +0000
Subject: Re: How to do Date Calculation
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-119531@lists.php.net to get a copy of this message
You could also check out this class someone wrote called Date_calc. It's a nice frontend to all sorts of date calculations you may run across. It's helping me quite a bit for my projects. http://www.phpinsider.com/php/code/Date_Calc/ On Thu, 2002-10-10 at 06:04, Noodle Snacks wrote: > > "Jason Wong" <php-general@gremlins.com.hk> wrote in message > news:200210101853.04207.php-general@gremlins.com.hk... > > On Thursday 10 October 2002 18:37, Jack wrote: > > > Dear all > > > I'm trying to make a script which will show the month before current > month! > > > Is there anyway i can do this? > > > > > > Example : > > > > > > Current Pervious > > > > > > October September > > > > date("F", strtotime("last month")); > To find more about PHP's date/time functions go here: > > http://www.php.net/manual/en/ref.datetime.php > > in particular look at: > > date() -- Format a local time/date > mktime() -- Get UNIX timestamp for a date > time() -- Return current UNIX timestamp > strtotime() -- Parse about any English textual datetime description into a > UNIX timestamp > > > -- > JJ Harrison > lizner2002@yahoo.com.au > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#119531) next »