Re: what is %s %d
| From: | CPT John W. Holmes | Date: | Tue, 12 Aug 2003 12:48:42 +0000 |
| Subject: | Re: what is %s %d | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159275@lists.php.net to get a copy of this message | ||
From: "Jackson Miller" <jackson@coldfeetcreative.com>
> They are codes for date formatting.
>
> Specifically:
> %s represents seconds with leading zeros.
> %d represents day of the month with leading zeros
>
> so
> date("%s %d",mktime());
> would equal something like
> 59 08
Actually you'd get:
%59 %08
because date() does not use percent signs in the formatting. However, and I
think this is what you're thinking about, DATE_FORMAT() in MySQL does use
the percent signs like you've demonstrated.
---John Holmes...