ページへ戻る
+ Links
印刷
Python/現在の日付と時刻の取得
のバックアップ差分(No.1) ::
NJF Wiki
xpwiki
:
Python
/
現在の日付と時刻の取得
のバックアップ差分(No.1)
現在との差分
を表示
ソース
を表示
Python/現在の日付と時刻の取得
へ行く。
Next »
1: 2018-01-05 (金) 04:25:34
njf
Line 1:
Line 1:
+
Pythonでの日付の処理はdatetimeを使います。現在時刻の取得にはnowメソッドを使います。
+
from datetime import datetime
+
now = datetime.now()
Next »
Python/現在の日付と時刻の取得 のバックアップ一覧
Python/現在の日付と時刻の取得 のバックアップ差分(No. All)
1: 2018-01-05 (金) 04:25:34
njf
現: 2018-01-05 (金) 12:30:38
njf