[thelist] JOB: Freelance PHP developers wanted in London, UK

Dan Parry dan at virtuawebtech.co.uk
Wed May 3 10:08:55 CDT 2006


Another nifty function is strtotime() which takes a human readable string to
easily create a timestamp... e.g.

<?php echo date("Y-m-d", strtotime("-1 week")); ?>

http://uk.php.net/manual/en/function.strtotime.php

Cheers

Dan

-- 
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Ian Anderson
Sent: 03 May 2006 10:01
To: thelist at lists.evolt.org
Subject: [thelist] JOB: Freelance PHP developers wanted in London, UK

Dear list,

One of my clients has an ongoing requirement for freelance PHP developers;
they're based on Kensington, London.

If you have some availability over the coming weeks and months, can
physically get there and you think it would be of interest, please find more
information here:

http://tinyurl.com/hkojq

This is not a full-time position. Some office time is required but much can
be done remotely.

<tip type="Date calculations in PHP" author="Ian Anderson">
ASP has a useful function for date calculations - DateAdd() - which lets you
subtract specified units of time from a given date and return a real date,
taking account of leap years, month end, year end, and so on.

PHP doesn't have the same thing precisely, but you can do calculations on
timestamps to achieve the same result with less elegance. For example:

<?php 
# get the current unix timestamp 
$ts = time(); 
# figure out what 7 days is in seconds 
$one_week = 7 * 24 * 60 * 60; 
# make today's date based on current timestamp 
$today = date( "Y-m-d", $ts ); 
# make last week's date based on a past timestamp 
$one_week_ago = date( "Y-m-d", ( $ts - $one_week ) ); 
echo $one_week_ago;
?>

(Example By Nick Bouton from
http://www.zend.com/tips/tips.php?id=226&single=1)
</tip>

-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 02/05/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 02/05/2006
 




More information about the thelist mailing list