One - One Code All

Blog Content

python - Pyephem - datetime.datetime 和 ephem.Date 之间的时间差

Python   2020-06-07 12:29:00

ephem 日历库

import ephem
import datetime

now_datetime = datetime.datetime.now()
now_ephem = ephem.Date(now_datetime)
print "Datetime: ", now_datetime
print "Ephem   : ", now_ephem

'%f' % ephem.Date('2013/12/20 12:34:56')
=> '41627.024259'
'%f' % ephem.Date('2013/12/20 12:34:56.1')
=> '41627.024260'



上一篇:使用Harbor自建企业级Docker镜像仓库
下一篇:通过xargs删除多个相同image id的docker镜像

The minute you think of giving up, think of the reason why you held on so long.