博客园 首页 联系 订阅 管理

04 2010 档案

摘要:setlocale,strftime在linux平台上如果您想本地化一个时间最快的办法,就是系统为您提供支持。如果您使用脚本并且他能工作在linux平台那么您就可以少很多的工作。下面就用PHP来做例子,别的脚本都有自己相应的方法。[代码]当然上面的代码在window平台是不能正常工作的。他只会输出同样的时间串 阅读全文
posted @ 2010-04-21 09:22 雪冰 阅读(205) 评论(0) 推荐(0)

摘要:#include #include int main() { char str[50]; struct tm *p; time_t lt; lt=time(NULL); p=localtime(<); strftime(str,50,"%z %c %A %a",p); printf(str); return 0; } 阅读全文
posted @ 2010-04-19 21:46 雪冰 阅读(1071) 评论(0) 推荐(0)

摘要:可以使用如下的代码快速的取得GET search的值OK大功造成了。雪冰出品 阅读全文
posted @ 2010-04-17 17:14 雪冰