14,983
edits
m (→now: add SELECT CURRENT_TIMESTAMP;) |
m (→now) |
||
| Line 5: | Line 5: | ||
* php: echo date("y-m-d H:i:s", time() ); //Convert the time stamp of current time to the human readable time format. Ex: return '2010-12-21 10:05:06' | * php: echo date("y-m-d H:i:s", time() ); //Convert the time stamp of current time to the human readable time format. Ex: return '2010-12-21 10:05:06' | ||
* mysql: | * mysql: | ||
** SELECT NOW(); /*the human readable current time */ | ** SELECT NOW(); /*return the human readable current time: 2011-04-01 12:19:43 */ | ||
** SELECT CURRENT_TIMESTAMP; | ** SELECT CURRENT_TIMESTAMP; | ||
the current timestamp ex: 1292897201 | the current timestamp ex: 1292897201 | ||