腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2692)
视频
沙龙
3
回答
如
何用
python
在
google
cloud
firestore
中
创建
时间
戳
条目
python
、
google-cloud-platform
、
google-cloud-firestore
、
google-cloud-functions
我有一个基于
python
3.7的云函数。我有一个从纪元开始的秒值。我可以为文档添加字符串、整数等一系列
条目
,但不能添加
时间
戳
。 下面是一个简单的代码片段。db =
firestore
.Client(project=project_id) #
python
listed. # https:/
浏览 50
提问于2020-07-29
得票数 2
回答已采纳
1
回答
如何替换
Python
DatetimeWithNanoseconds对象
中
的日期
时间
字段
python
、
datetime
、
google-cloud-firestore
、
python-datetime
在
Python
中
,我需要在
google
-
cloud
firestore
文档
中
设置一个
时间
戳
字段。我知道应该使用
google
.api_core.datetime_helpers.DatetimeWithNanoseconds来设置
firestore
时间
戳
字段,它是Datetime的子类 我需要用指定的分钟字段设置now()
时间
戳
,
浏览 14
提问于2021-01-12
得票数 1
1
回答
Firebase
Firestore
服务器
时间
戳
在
列表
中
时失败,使用的是firebase-admin
python
sdk
python
、
firebase
、
google-cloud-firestore
、
timestamp
我按照this post
中
的说明
在
我的
firestore
数据
中
插入了一个服务器
时间
戳
,只要
时间
戳
在
地图中,它就能正常工作。但是,如果映射进一步嵌入到列表
中
,则会失败。这是不允许的吗?, merge=merge) File "/Users/fred/Library/
Python
/3.7/lib/
python</
浏览 10
提问于2020-07-28
得票数 0
1
回答
如何在gcloud日志记录命令行中使用
时间
戳
过滤日志
条目
google-cloud-platform
谁知道如何在gcloud日志记录命令行
中
通过
时间
戳
过滤日志
条目
?
在
google
云站点- https://
cloud
.
google
.com/logging/docs/reference/tools/gcloud-logging
中
,我学会了通过命令读取日志。logName=projects/[PROJECT_ID]/logs/syslog
浏览 0
提问于2020-07-02
得票数 5
1
回答
Fi还原选项- setTimestampsInSnapshotsEnabled()被弃用
java
、
google-cloud-firestore
、
firebase-admin
我在后端使用以下代码初始化
Firestore
,
如
文档所示:GoogleCredentials credentialsdb = FirestoreClient.getFirestore(); 存储
在
Firestore
中
的java.util.Date对象的行为将发生变化
中
的
时间
<em
浏览 1
提问于2019-09-09
得票数 1
1
回答
如何根据
firestore
文档的
时间
戳
属性触发云函数
node.js
、
google-cloud-firestore
、
google-cloud-functions
、
google-cloud-scheduler
我试图让一些文档根据它包含的日期属性消失,我试图使用云调度程序,但它不允许我动态指定云函数的执行日期。
浏览 17
提问于2019-07-23
得票数 1
回答已采纳
2
回答
在
通过云函数处理时,Fi还原
时间
戳
被转换为映射。
firebase
、
google-cloud-firestore
我对firebase.
firestore
.Timestamp类有一个问题。firebase.
firestore
().doc('some_collection/uid).set(doc); 文档将作为
时间
戳
正确地写入到防火墙
中
。但是,当我将doc发送到云函数,然后从函数执行写时,它会被写成一个映射,而
浏览 0
提问于2018-11-18
得票数 2
回答已采纳
1
回答
导出时,`FirestoreAdminClient.exportDocuments`如何在Firebase
中
的文件夹上
创建
时间
戳
?
firebase
、
google-cloud-firestore
Google
Firebase提供了导出firebase数据的手册,请访问: 2020-05-12T17:55:41_69705 我想
创建
仍保留
时间
戳
格式的自定义备份。我找遍了github,但找不到
创建
这个特定
时间
戳
的函数。有谁有什么想法吗?我假设它是
firestore
.v1.Fi
浏览 1
提问于2020-05-13
得票数 1
3
回答
固定恢复规则验证
时间
戳
与颤振客户端
firebase
、
flutter
、
google-cloud-firestore
、
firebase-security
我希望通过客户端发送
创建
时间
,并使用
Firestore
规则验证
时间
,以避免云函数调用(定价)。请求包含一个具有
时间
戳
的TIMEFIELD,就像request.time一样。问题下面是request.time从文档
中
获得的信息。我想知道是否有一种方法可以
在
文档
中
设置与request.time相等的字段。
浏览 2
提问于2018-07-21
得票数 6
回答已采纳
1
回答
Raspberry Pi -
Firestore
时间
戳
问题
python
、
timestamp
、
google-cloud-firestore
、
raspberry-pi3
因此,
在
我的项目中,我尝试将
时间
戳
发送到我的
firestore
数据库。当我
在
python
代码
中
测试我的datetime时,它会给我正确的日期和
时间
,
在
将数据发送到
firestore
之后,数据库
中
的
时间
戳
数据始终是当前
时间
的+8小时。下面是我的代码:from firebase_admin import
浏览 2
提问于2018-05-20
得票数 1
1
回答
Google
任务:如何更新任务的生存
时间
?
node.js
、
google-cloud-platform
、
google-cloud-functions
、
google-cloud-tasks
描述: // That gets envoked by
浏览 5
提问于2022-06-16
得票数 1
3
回答
‘’
google
cloud
-
firestore
‘发行版没有添加到PyInstaller版本
中
python
、
firebase
、
pyinstaller
当我试图为我的
python
脚本构建一个可执行文件时,它给了我:我
创建
了以下钩子:“hook-
google
-
cloud
-
firestore
.py”和“hook-
google</
浏览 0
提问于2019-04-25
得票数 2
2
回答
如何为Firebase获取当前系统
时间
戳
?
在
Android Kotlin
firebase
、
kotlin
、
google-cloud-firestore
我正在使用Firebase分页,因此我需要当前的
时间
戳
查询数据库
在
防火墙?有人知道如何从系统
中
获取当前
时间
戳
吗?
浏览 4
提问于2020-07-30
得票数 4
回答已采纳
1
回答
为什么我的JavaScript日期/
时间
对象存储为映射,而不是云图中的
时间
戳
?
javascript
、
firebase
、
datetime
、
google-cloud-firestore
附上的图片是一个截图的两个“日期/
时间
”的
条目
在
我的斐济文档。是否有一种方法可以将我的JavaScript日期(timeCreated)存储为真正的
时间
戳
,类似于timeCom
浏览 0
提问于2019-07-16
得票数 0
回答已采纳
1
回答
如何为
firestore
创建
大量样本数据?
json
、
database
、
firebase
、
google-cloud-firestore
假设我需要在
firestore
中
创建
许多不同的文档/集合。我需要快速添加它,就像复制和粘贴json一样。我不能用标准的firebase控制台做到这一点,因为添加100个文档将花费我永远的
时间
。对于
在
firestore
数据库
中
批量
创建
具有给定结构的模拟数据,有什么解决方案吗?
浏览 3
提问于2018-04-29
得票数 8
12
回答
Firestore
按日期范围查询
firebase
、
google-cloud-firestore
我需要的帮助,以查询与日期范围长收集。请参阅下面的示例文档。我想用日期范围查询startTime字段。
浏览 2
提问于2017-10-29
得票数 102
2
回答
如何将
firestore
时间
戳
转换为不同的格式en c#
c#
、
firebase
、
datetime
、
google-cloud-firestore
、
timestamp
我试图
在
c #
中
的dateTimePicker值中放入一个
时间
戳
,我不知道这是否可行,但我得到了一个错误。如果可能的话,我想把它的格式("dd/MM/yyyy")。dateTimeDate.Value = student.date;Cannot implicitly pass the type "
Google
.
Cloud
.
firestore
.TimestampdateTimeDate.Value
浏览 0
提问于2021-03-03
得票数 2
1
回答
堆栈驱动程序记录客户端库缺少使用
python
的严重性
python-3.x
、
google-app-engine
、
google-cloud-platform
、
stackdriver
、
google-cloud-stackdriver
我想从我的应用引擎标准
python
3应用程序
中
向堆栈驱动程序日志发送更有表现力的日志
条目
。通过遵循,我能够将日志发送到堆栈驱动程序,并且似乎正确地解析了
时间
戳
。import loggingfrom
google
.
cloud
import logging as glogapp = Flask(__name__) log_client = glog.Clie
浏览 0
提问于2019-05-14
得票数 8
回答已采纳
4
回答
Firebase:存储
创建
文档时的服务器
时间
戳
javascript
、
firebase
、
google-cloud-firestore
当我使用这段代码时:它
创建
条目
{".sv" : "timestamp"} <--实际单词"timestamp“
浏览 1
提问于2017-12-25
得票数 18
回答已采纳
2
回答
我可以将天数添加到服务器
时间
戳
中
吗?
firebase
、
react-native
、
google-cloud-firestore
我正在编写一个,它为有日期
创建
字段的用户
创建
优惠券,以及
Firestore
中
的日期过期。过期日期是
创建
的日期加上一些天(例如,7天)。理想情况下,我希望
在
创建
的firebase函数中使用
firestore
.FieldValue.serverTimestamp(),并在到期时添加7天,以避免用户生成日期。 有什么办法可以做到吗?
浏览 3
提问于2019-10-15
得票数 4
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Spring Boot教程:构建微服务并部署至Google Cloud
我们弃用 Firebase了
谷歌云APP引擎今天开始支持Python 3.7
谷歌发布Apigee API平台新特性
手把手教你用苹果Core ML和Swift开发人脸目标识别APP
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券