为什么更新的日期没有更新

2024-04-25 13:19:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图比较笔记的最后更新时间,但是每当我使用note_store.updateNote(dev_token, note)时,它似乎不会更新最后更新的时间。在Evernote客户端中,便笺不会显示为已更新。你知道吗

如果我用note.updated = int(time.time())*1000手动更新它,那么它在Evernote客户机中工作正常,但是下次我用note_store.getNote(dev_token, guid, True, True, False, False)拉便笺时,note.updated仍然设置为它的原始创建日期!你知道吗

有没有办法知道上次更新的时间?否则,无法知道便笺是否已更新。。你知道吗

以下是我从脚本中获得的原始信息,但在Evernote客户端中,我清楚地看到note有不同的更新时间:

NoteMetadata(updated=1477775369000, created=1477775369000, deleted=None, contentLength=None, title='backup.sh', notebookGuid=None, updateSequenceNum=None, tagGuids=['3b50966a-f7d9-4c5b-ad94-85a2750eed97'], largestResourceMime=None, attributes=NoteAttributes(lastEditorId=None, placeName=None, sourceURL=None, classifications=None, creatorId=None, author=None, reminderTime=None, altitude=None, reminderOrder=None, shareDate=None, reminderDoneTime=None, longitude=None, lastEditedBy=None, source=None, applicationData=None, sourceApplication=None, latitude=None, contentClass=None, subjectDate=None), guid='3cc67126-e44b-4af0-a88c-edb6535f71bb', largestResourceSize=None)

Tags: storedevtokennonefalsetrue客户端time

热门问题