Re: Problems with Date.php 1.3.1 beta

From: Date: Wed, 17 Sep 2003 22:06:53 +0000
Subject: Re: Problems with Date.php 1.3.1 beta
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21664@lists.php.net to get a copy of this message
Chris LeCompte wrote:
function Date($date = null) {
    if (is_null($date)) {
        // create default Date object
    }  else if (is_string($date)) {
        // handle timestamp/ISO formats
    } else {
        // handle unix timestamps
    }
}
20030917 isn't a unix timestamp, but isn't a string either. :) -- Marshall Roch http://pear.php.net/user/mroch

« previous php.pear.dev (#21664) next »