R
R
reverend-dikiy2021-07-13 14:25:53
Python
reverend-dikiy, 2021-07-13 14:25:53

How to change created_at.strftime language?

There is an object .created_at.strftimethat outputs a value

Saturday, January 05 2019 @ 18:30:42 PM
how to display the value in Russian?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-07-13
@revrend-dikiy

import locale
locale.setlocale(0, "") #чтобы выбрать текущую локаль операционной системы
# или 
locale.setlocale(0, "ru-ru") #если нужна именно русская, даже если ОС не на русском.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question