Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> znacznik czasu dla daty przed 1970
micz84
post
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 4.10.2004
Skąd: Niemcz

Ostrzeżenie: (0%)
-----


witam,
mam pytanie, jak utworzyc znacznik czasu dla daty ponizej 1970 roku?
funkcja mktime() zwraca mi ostrzerzenie ze nie obsluguje wartosci ujemnych:/. Zna ktos moze inny sposob na wytworzenie takiego znacznika czasu??
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
orson
post
Post #2





Grupa: Zarejestrowani
Postów: 548
Pomógł: 2
Dołączył: 19.07.2003

Ostrzeżenie: (0%)
-----


witam

w polskim manualu są spore nieścisłości odnośnie nowych wersji ponieważ:
Cytat
Before php 5.1.0, negative timestamps were not supported under any known version of Windows and some other systems as well. Therefore the range of valid years was limited to 1970 through 2038.

oraz
Cytat
The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before php 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows).

pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 22:21