🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jak wygenerować datę

#230430
From: Borys Pogoreło
Date: Mon, 26 May 2014 07:14
14 lines
1285 bytes
Dnia Sun, 25 May 2014 05:57:17 +0000 (UTC), astro napisał(a):

> http://pl.wikipedia.org/wiki/Czas_uniksowy
> wiec wystarczy do tej wartosci dodac/odjac ilosc sekund - w tym wypadku, 
> jakie uplynely w ciagu 31 dni.
> 
> $date = time() - (31 * 24 * 60 * 60);

... zakładając, że liczysz tuż po północy, a w badanym okresie nastąpiła
zmiana czasu, to zgadnij co wyjdzie.

-- 
Borys Pogoreło
borys(#)leszno,edu,pl
Technical Details
Message-ID: <crb4wrdd64pq$.n4bez0rtc943.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.promontel.net.pl!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!news.promontel.net.pl!not-for-mail
From: Borys Pogoreło <borys@pl.edu.leszno>
Newsgroups: pl.comp.lang.php
Subject: Re: jak wygenerować datę
Date: Mon, 26 May 2014 09:14:05 +0200
Organization: snafu
Lines: 14
Message-ID: <crb4wrdd64pq$.n4bez0rtc943.dlg@40tude.net>
References: <llo75h$ahk$1@node1.news.atman.pl> <lls0ns$lm5$1@portraits.wsisiz.edu.pl>
NNTP-Posting-Host: 89-70-178-167.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: thunar.promontel.net.pl 1401088433 26279 89.70.178.167 (26 May 2014 07:13:53 GMT)
X-Complaints-To: abuse@promontel.net.pl
NNTP-Posting-Date: Mon, 26 May 2014 07:13:53 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.14.1pl
X-fnord: obey.
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit