ZGtheGreat

关注

datetime 获取当前日期,当前秒,当前时间戳

ZGtheGreat

关注

阅读 171

2022-03-25


from datetime import datetime
t = datetime.now()
print(datetime.date(t))
print(t.isoformat(sep = ' ',timespec = 'seconds'))
print(t.timestamp().__str__().replace('.',''))






  作者:刘瀚阳​,转载请注明原文链接



相关推荐

gy2006_sw

java获取当前日期的时间戳

gy2006_sw 75 0 0

梅梅的时光

获取当前日期时间

梅梅的时光 113 0 0

49路末班车

【LocalDate LocalTime LocalDateTime】当前日期、当前时间、当前日期时间

49路末班车 152 0 0

数数扁桃

C# 获取当前时间、当前日期

数数扁桃 99 0 0

书呆鱼

MySQL sql语句获取当前日期|时间|时间戳

书呆鱼 193 0 0

飞空之羽

Python datetime获取当前日期0点

飞空之羽 12 0 0

栖桐

php获取当前日期和时间

栖桐 120 0 0

安七月读书

Python获取当前日期和时间

安七月读书 74 0 0

凶猛的小白兔

JS 获取当前日期、时间、星期

凶猛的小白兔 84 0 0

天天天蓝loveyou

mongodb 获取当前日期

天天天蓝loveyou 74 0 0

精彩评论(0)

0 0 举报