µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
PHP
»
PHP+MySQL ¤Jªù¹ê§@
» 2-2-2 date()¨ç¼Æ
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
2-2-2 date()¨ç¼Æ
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-25
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-25
1
#
¸õÂà¨ì
»
˧Ǭݩ«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2011-4-17 23:24
|
¥u¬Ý¸Ó§@ªÌ
2-2-2 date()¨ç¼Æ
2-2-2 date()¨ç¼Æ
date()¨ç¼Æ¡G®æ¦¡¤Æ¤é´Á®É¶¡ªº¨ç¼Æ¡C
date()¨ç¼Æ¥i¥H±N¬YÓ¤é´Á®É¶¡ªº¦r¦ê¥[¥H©î¸Ñ¡AÅý§Ų́ú±o»Ýnªº³¡¤À¥[¥H§Q¥Î©Î¥[¥H²Õ¦X¨Ï¥Î¡G
String date(string format,int[timestamp]);
½Æ»s¥N½X
string format¡Gn¨ú¥Xªº¤é´Á®É¶¡³¡¤À¡A¥]¬A¦~¡B¤ë¡B¤é¡B®É¡B¤À¡B¬í¡B¬P´Á¡K¡A¨£ªí2-1¡C
int timestamp¡Gn¶i¦æ©î¸Ñ©Î²Õ¦XÀ³¥Îªº¡u®É¶¡ÂW°O¡v¡A¡u®É¶¡ÂW°O¡v¬O«ü¦Û¦è¤¸1970¦~1¤ë1¤é¨ì§ÚÌ«ü©wªº¤é´Á¤§¶¡ªº®É¶¡¬í¼Æ¡C
int timestamp°Ñ¼Æ¥i¥H¤£¥Î«ü©w¡AY¤£«ü©w«hdate()¨ç¼Æ±N¥H¥Ø«e¨t²Îªº¤é´Á®É¶¡¬°¡u®É¶¡ÂW°O¡v¡C
È
»¡©ú
¦^¶ÇȽd¨Ò
A
¤j¼gªº^¤å¤W¤È©Î¤U¤È¼Ð¥Ü
AM ; PM
a
¤p¼gªº^¤å¤W¤È©Î¤U¤È¼Ð¥Ü
am ; pm
D
¨Ï¥Î¤TÓ^¤å¦r¥Àªí¥Ü¬P´Á
Mon ; Fri
d
¤G¦ì¼Æ¦r®æ¦¡Åã¥Ü¤ë¥÷
02 ; 12
F
§¹¾ãªº^¤å¤ë¥÷¦WºÙ
May ; June
H
24
®É¨îªº¤p®É¡A¤G¦ì¼Æ¦r®æ¦¡Åã¥Ü
(00~23)
23 ; 01
h
12
®É¨îªº¤p®É¡A¤G¦ì¼Æ¦r®æ¦¡Åã¥Ü
(01~12)
12 ; 05
G
24
®É¨îªº¤p®É¡AÅã¥Ü
0~23
13 ; 1
g
12
®É¨îªº¤p®É¡AÅã¥Ü
1~12
12 ; 5
i
Åã¥Ü¤ÀÄÁ¡A¤G¦ì¼Æ¦r®æ¦¡Åã¥Ü
00 ~ 59
j
Åã¥Ü¤é´Á
1 ~ 31
L
§PÂ_¤é´Á®É¶¡ªº¦~¥÷¬O§_¬°¶|¦~¡A¦^¶ÇȬ°
0
©Î
1
0 or 1
l
¤p¼g
L
¡A§¹¾ãªº^¤å¬P´Á¦WºÙ
Sunday
M
¨Ï¥Î¤TÓ^¤å¦r¥Àªí¥Ü¤ë¥÷
Jan ; May
m
¤G¦ì¼Æ¦r®æ¦¡Åã¥Ü¤ë¥÷
01 ~ 12
n
Åã¥Ü¤ë¥÷¡AÅã¥Ü
1~12
1 ; 5 ;12
S
¨Ï¥Î¨âÓ^¤å¦r¥Àªí¥Ü§Ç¼Æ
nd ; th
s
¤G¦ì¼Æ¦r®æ¦¡Åã¥Ü¬í¼Æ
00 ~ 59
t
Åã¥Ü¤ë¥÷ªº¤é´Á¼Æ
28 ~ 31
w
¨Ï¥Î¼Æ¦rªí¥Ü¬P´Á
0 ~6
Y
¥|¦ì¼Æ¦r®æ¦¡Åã¥Ü¦~¥÷
2000 ; 1999
y
¤G¦ì¼Æ¦r®æ¦¡Åã¥Ü¦~¥÷
00 ; 99
z
Åã¥Ü¤é´Á¬°·í¦~ªº²Ä´X¤Ñ
0 ~ 365
ªí
2-1
¼Ó¥D¼ö©«
½×¾Â¤£Åý¸ê¾ú¤ñ¸û²Lªº¤H¤U¸ü¬d¬Ýªþ¥óªº¥Î·N
EXCEL±MÄÝ°Q½×°Ï¦Û§Y¤é°_¤¤¾Ç¥Í¥H¤W·|û¤è
³Â»¶®a±Ú°Q½×°Ï ³q¥Îª©³W
OFFICE °ò¦±Ð¾Ç¼Æ¦ì¤Æ
ATX ¹q·½¨ÑÀ³¾¹¤â°Ê±Ò°Ê(¤£±µ¥D¾÷ªO±Ò°Ê)
¦Ò¼{Ãö³¬½×¾Âºô¯¸
³Â»¶®a±Ú°Q½×°ÏÁô¨pÅv¬Fµ¦»¡©ú
³Â»¶®a±Ú°Q½×°Ï ¸Û¼xª©¥D
¥Ñ½׾ÂÂà¶iªº¤¤¾Ç¥Íµ¥¯Å¥H¤W·|û,½ÐÃöª`!
14-2 ¸ê®Æ®w¹Ï¤ù¦s¨ú
¦¬ÂÃ
¤À¨É
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-25
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-25
2
#
µoªí©ó 2011-4-17 23:26
|
¥u¬Ý¸Ó§@ªÌ
½d¨Ò¡Gch02_03.php
<HTML>
<HEAD>
<TITLE>date()¨ç¼Æ</TITLE>
</HEAD>
<BODY>
<?
echo date("G ®É i ¤À s ¬í A <p>
¤µ¤Ñ¬° l <p>
¤ë¥÷¬°F");
?>
</BODY></HTML>
½Æ»s¥N½X
¤U¸ü
(25.1 KB)
2011-4-17 23:26
¹Ï2-10 ½d¨Òch02_03.PHP¡C
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
ÀR«ä¦Û¦b :
¦¨¥\¬OÀuÂIªºµo´§¡A¥¢±Ñ¬O¯ÊÂIªº²Ö¿n¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·