R: [PHP] Intersecting Dates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you got also the year you can transform the dates into UNIX TIMESTAMP and
check againist that. If you don't have that, write down a simple procedure
that converts dates into days since 01/01 and use that method, but it will
be faulty if the date ranges overlap years.

Cheers

En3pY 


Sebastian Konstanty Zdrojewski 

________________________________

URL: http://www.en3py.net/
E-Mail: en3py@xxxxxxxx

________________________________

Le informazioni contenute in questo messaggio sono riservate e
confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario
del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei
non fosse la persona a cui il presente messaggio è destinato, La invito ad
eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone
gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi
del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). 

-----Messaggio originale-----
Da: Shaun [mailto:shaunthornburgh@xxxxxxxxxxx] 
Inviato: sabato 26 novembre 2005 22.18
A: php-general@xxxxxxxxxxxxx
Oggetto:  Intersecting Dates

Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how
can one check if another set intersects these dates?

Thanks for your advice 

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.8/183 - Release Date: 25/11/2005
 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux