🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jak wygenerować datę

#230431
From: XJL
Date: Mon, 26 May 2014 11:18
12 lines
1463 bytes
W dniu 26.05.2014 09:14, Borys Pogoreło pisze:
>> $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.
>

timestamp będzie prawidłowy, niezależnie od stref czasowych, czasu 
letniego/zimowego, lat przestępnych i sekund przestępnych.

A to co później zrobi z timestampem aby uzyskać czytelną dla człowieka 
datę to już inna sprawa.
Technical Details
Message-ID: <llv7us$int$1@node2.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> <crb4wrdd64pq$.n4bez0rtc943.dlg@40tude.net>

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: XJL <XJL@wp.pl.invalid>
Newsgroups: pl.comp.lang.php
Subject: Re: jak wygenerować datę
Date: Mon, 26 May 2014 13:18:52 +0200
Organization: ATMAN - ATM S.A.
Lines: 12
Message-ID: <llv7us$int$1@node2.news.atman.pl>
References: <llo75h$ahk$1@node1.news.atman.pl> <lls0ns$lm5$1@portraits.wsisiz.edu.pl> <crb4wrdd64pq$.n4bez0rtc943.dlg@40tude.net>
NNTP-Posting-Host: 2001:6a0:200:839e:626c:66ff:fe76:8761
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1401103132 19197 2001:6a0:200:839e:626c:66ff:fe76:8761 (26 May 2014 11:18:52 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Mon, 26 May 2014 11:18:52 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To: <crb4wrdd64pq$.n4bez0rtc943.dlg@40tude.net>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit