阅读背景:

如何在不同的语言环境中对日期对象进行strftime?

来源:互联网 

I have a date object in python and I need to generate a time stamp in the C locale for a legacy system, using the %a (weekday) and %b (month) codes. However I do not wish to change the application's locale, since other parts need to respect the user's current locale. Is there a way to call strftime() with a certain locale?I have a date object in python and I need to ge




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: