PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Book your hotel early for a discount!
You can reap the rewards with great discounts at participating Pullman, M Gallery, Grand Mercure, Novotel, Mercure, ibis and Formule 1 hotels.  | From our sponsors | | |
[ASK] Saya punya skrip berikut echo date('d F Y',... Sep 28th 2013, 07:31, by Ryan Dmtry | [ASK] Saya punya skrip berikut
echo date('d F Y', strtotime('2038-01-19')); // 19 January 2038 echo date('d F Y', strtotime('2038-01-20')); // 01 January 1970
Apakah di PHP ada maksimum tanggal?
Satu hal lagi, saya coba ubah tanggal di laptop saya menjadi tahun 2038 tanggal > 15 di bulan januari, alhasil mysql error tidak dapat di aktifkan.. :hammer: |
| | strtotime itu dari unix time stamp rentang waktu nya sampai batas maximum integer, 19 januari 2038 itulah batas maximum nya kalau lebih dari itu dia akan kembali ke nol, makanya 20 januari itu jadi 1 januari 1970(detik ke 0) |
| | biar g kena masalah itu membentuk tanggal nya pake kelas DateTime aja |
| | from php manual: http://php.net/manual/en/function.date.php "5.1.0 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)."
from mysql 5.0 manual: http://dev.mysql.com/doc/refman/5.0/en/datetime.html "The TIMESTAMP data type is used for values that contain both date and time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC." |
| | Siip siip hatur thank u, ane ga baca dimanualnya :3 | | |
|
Tidak ada komentar:
Posting Komentar