Форматирование даты локали в Python

HTML

 <button class="destroy" id="123">

JQuery

  $('button.destroy').on('click', function(e){
    e.preventDefault();
    console.log(this.id);
42
задан Alex 12 June 2009 в 07:48
поделиться

1 ответ

Вы можете просто установить языковой стандарт, как в этом примере:

>>> import time
>>> print time.strftime("%a, %d %b %Y %H:%M:%S")
Sun, 23 Oct 2005 20:38:56
>>> import locale
>>> locale.setlocale(locale.LC_TIME, "sv_SE") # swedish
'sv_SE'
>>> print time.strftime("%a, %d %b %Y %H:%M:%S")
sön, 23 okt 2005 20:39:15
53
ответ дан 26 November 2019 в 23:23
поделиться
Другие вопросы по тегам:

Похожие вопросы: