[英]strftime: from where the locale (en, es…) is retrieved?
I have just found out the function strftime()
. 我刚刚发现了函数
strftime()
。 The manual says about it: 手册说明了这件事:
Format a local time/date according to locale settings".
根据区域设置格式化本地时间/日期“。
But...from where the locale (en, es...) is retrieved? 但是......从哪里检索语言环境(en,es ...)?
PHP will use the server's locale setting. PHP将使用服务器的语言环境设置。 You can set it via setlocale() .
您可以通过setlocale()进行设置 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.