![](/img/trans.png)
[英]Flutter can't convert Firestore Timestamp to DateTime
[英]Python Firestore convert DateTime to timestamp string
我想知道如何將 dateTime 轉換為 firebase rest API 的時間戳
獲取 firebase 時間戳字符串
from datetime import datetime
timestamp_str = datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%fZ")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.