🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230429

Re: jak wygenerować datę

#230429
From: tusk, donald tusk
Date: Sun, 25 May 2014 10:16
9 lines
1218 bytes
 > $date = time() - (31 * 24 * 60 * 60);

dzięki, a jeszcze jak zamienić to na datę np. 2014.04.04
potrzebną mi do gmerania w bazie...

czy wystarczy podać time z dziennego zakresu i funkcja sama sobie 
określi dzień?

a jak określić dzień tygodnia?
Technical Details
Message-ID: <llsfta$nve$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <llo75h$ahk$1@node1.news.atman.pl> <lls0ns$lm5$1@portraits.wsisiz.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: "tusk, donald tusk" <NOSPAM_testowanije@go2.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: jak wygenerować datę
Date: Sun, 25 May 2014 12:16:06 +0200
Organization: ATMAN - ATM S.A.
Lines: 10
Message-ID: <llsfta$nve$1@node1.news.atman.pl>
References: <llo75h$ahk$1@node1.news.atman.pl> <lls0ns$lm5$1@portraits.wsisiz.edu.pl>
NNTP-Posting-Host: pc-85-202-105-129.siedlce.domtel.com.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1401012970 24558 85.202.105.129 (25 May 2014 10:16:10 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sun, 25 May 2014 10:16:10 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
In-Reply-To: <lls0ns$lm5$1@portraits.wsisiz.edu.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit