Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //======================================================================
- // PHP日期和时间表示
- //======================================================================
- //----------------------------------------------------------------------
- // Mysql时间戳存储
- //----------------------------------------------------------------------
- # INT 11
- # TIMESTAMP
- # 今天凌晨的MySQL时间戳字符串
- echo date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("y")));
- # INT11类型的时间戳字段
- mktime(0,0,0,date("m"),date("d"),date("y"));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement