2008-09-09 04:35:00

kiddy
» Banned
FTalk Level: zero
4822
0
1969-12-31

Re: [quote]RULES: [li]Eveyone must know the General Forum [url=http://theftalk.com/misc.php?action=rules]RULES[/url][/li] [li]must be active[/li] [li]must be friendly[/li] [li]spamming or flamming

newbie noempang le_what (english version) [hr] oia.. kemarin ada yang nanya tentang pertanggalan.. satu hal yang penting dan harus diketahui.. script tanggal itu awalnya pada tanggal 1 Januai 1970..sebelum tanggal itu..tidak terdefinisi.. [hr] neh sebagian tentang pertanggalan (ngga perlu di-share keluar yagh!?) <?php print date("a"); ?> pm <?php print date("A"); ?> PM <?php print date("d"); ?> 15 <?php print date("D"); ?> Tue Day of the week: Sun, Mon, Tue, Wed, Thu, Fri, Sat <?php print date("F"); ?> October Month: January, February, March... <?php print date("h"); ?> 03 Hour: 01 to 12 <?php print date("H"); ?> 15 Hour: 00 to 23 <?php print date("g"); ?> 3 Hour: 1 to 12 <?php print date("G"); ?> 15 Hour: 0 to 23 <?php print date("i"); ?> 26 Minutes: 00 to 59 <?php print date("j"); ?> 15 Day of the month: 1 to 31 <?php print date("l"); ?> Tuesday Day of the week: Sunday, Monday, Tuesday... <?php print date("L"); ?> 0 Is it a leap year? 1 (yes) or 0 (no) <?php print date("m"); ?> 10 Month: 01 to 12 <?php print date("n"); ?> 10 Month: 1 to 12 <?php print date("M"); ?> Oct Month: Jan, Feb, Mar, Apr, May... <?php print date("s"); ?> 03 Seconds: 00 to 59 <?php print date("S"); ?> th Ordinal: 1st, 2st, 3st, 4st... Need to be used with a numeric time/date value. See latter. <?php print date("t"); ?> 31 Number of days in the month: 28 to 31 <?php print date("U"); ?> 1034691963 [b]Seconds since 1970/01/01 00:00:00[/b] <?php print date("w"); ?> 2 Day of the week: 0 (Sunday) to 6 (Saturday) <?php print date("Y"); ?> 2002 Year (four digits) <?php print date("y"); ?> 02 Year (two digits) <?php print date("z"); ?> 287 Day of the year: 0 to 365 <?php print date("Z"); ?> -21600 Difference in seconds from Greenwhich meridian Fungsi print sama saja dengan echo. Sama-sama menampilkan/cetak data ke layar. Ok, bagimana cara menggabungkan jadi satu ??? Bisa dilihat pada contoh dibawah : <?php print date("Y"); ?>:<?php print date("m"); ?>: <?php print date("d"); ?> hasil 2002:10:15 <?php print date("Y").":".date("m").":".date("d"); ?> hasil 2002:10:15 <?php print date("Y:m:d"); ?> hasil 2002:10:15 Lihat lagi contoh berikut : <?php print date("Y:m:d H:i") ?> hasil 2002:10:15 15:26 <?php print date("l dS of F Y h:i:s A"); ?> hasil Tuesday 15th of October 2002 15:26:03 PM Waktu sekarang adalah <?php print date("H:i") ?>. Itu artinya jam <?php print date("i") ?> lewat <?php print date("H") ?> menit hasil Waktu sekarang adalah 15:26. Itu artinya jam 15 lewat 26 menit .

Last edited by kiddy (2008-09-09 04:46:06)

Board footer

© 2025 F Talk

Current time is 18:27

[ 12 queries - 0.038 second ]
Privacy Policy