#!/usr/bin/env python3# -*- coding: utf-8 -*-import timeimport datetimedef test(): otherStyleTime = time.strftime( "%Y-%m-%d %H:%M:%S", time.localtime(1659760440)) print(otherStyleTime) # 2022-08-06 12:34:00test()