pythonの日付処理 Python
# pythonの日付処理
from datetime import datetime  date
from time import localtime  mktime
現在時刻表示
now = datetime.now()
print(now)
タイムスタンプから指定したフォーマットで表示
n = datetime.fromtimestamp(1514523005)
print(n.strftime( %Y/%m/%d %H:%M:%S ))
python で jsonを見やすくする
print( json.dumps( jsonが入っている変数   sort_keys=True  indent=4) )