🖥
A simple example of creating a datetime object with a specific date /
<p> <code>datetime.datetime()</code> . </p>
<pre> <code class="py">>>> import datetime
>>> datetime.datetime(2016,1,2, 10,20,5, 100).strftime('%Y-%m-%d %H:%M:%S %a %f')
'2016-01-02 10:20:05 Sat 000100'
</code> </pre>
<h1> ref </h1>
<p> <a href="https://www.programiz.com/python-programming/datetime/strftime">Python strftime ()-datetime to string</a> </p>
Original by Github issue
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
公開日時
2019-04-14
Discussion