原始碼
@setlocale(LC_TIME, 'zh_TW.UTF-8');
define('DATE_FORMAT_SHORT', '%m/%d%/%Y');
// this is used for strftime()
define('DATE_FORMAT_LONG', '%Y年%m月%d日%A');
// this is used for strftime()
define('DATE_FORMAT', 'm/d/Y');
// this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SHORT', '%m/%d%/%Y');
// this is used for strftime()
define('DATE_FORMAT_LONG', '%Y年%m月%d日%A');
// this is used for strftime()
define('DATE_FORMAT', 'm/d/Y');
// this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
這樣會顯示成
2005年12月01日週三
沒有留言:
張貼留言