简体   繁体   English

如何将时间戳更改为其他时间而不是 utc 时间

[英]How to change the timestamp to other time rather than utc time

I'm working on an iiot based monitoring solution and working with aws services.我正在研究基于 iiot 的监控解决方案并使用 aws 服务。 I'm batching the data received from iot core in this flow: -我在这个流程中批处理从 iot 核心收到的数据:-

iot core -> rules (to firehose delivery stream) -> kinesis firehose (900 second buffer) -> s3 bucket

the s3 prefix is as follows:- s3 前缀如下:-

partitionKey={partitionKeyFromQuery:device_name}/year=:{timestamp:yyyy}/month=:{timestamp:MM}/day=!{timestamp:dd}/hour=!{timestamp:hh}

but the issue with this flow is it makes the folder structure in s3 bucket as follows: -但此流程的问题在于它使 s3 存储桶中的文件夹结构如下:-

partitionKey=wind-mill-01/year=2023/month=01/day=08/hour=08 (logs hour in utc time)

I want to log the time in ist format for the "hour" field is there any way possible to do it?我想以 ist 格式记录“小时”字段的时间,有什么办法可以做到吗?

Any help will be greatly appreciated.任何帮助将不胜感激。

Firehose only support UTC as mentioned in the documentation .文档中所述,Firehose 仅支持 UTC。 If you want to have it in IST for some reason, you can have a lambda (or glue job) moving object into another path with the hour in IST.如果你出于某种原因想把它放在 IST 中,你可以有一个 lambda(或粘合工作)将 object 移动到另一个路径中,并在 IST 中小时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL - 从单独的日期/时间/时区信息创建 UTC 时间戳 - SQL - Creating UTC Timestamp from separate date/time/timezone information 使 CloudWatch Event 传递 integer 时间戳而不是 UTC 时间字符串 - Make CloudWatch Event pass an integer timestamp instead of string of UTC time 如何将 Firestore 时间戳打印为格式化的日期和时间 - How to print Firestore timestamp as formatted date and time Bigquery中的DATE(timestamp_expression[, timezone]):将UTC(2021-12-07T04:46:16Z)转换为本地时间,UTC在SQL中有T和Z。如何获取AEST? - DATE(timestamp_expression[, timezone]) in Bigquery: convert UTC (2021-12-07T04:46:16Z) to local time, UTC has T and Z in SQL. How to get AEST? Firebase TIMESTAMP 到日期和时间 - Firebase TIMESTAMP to date and Time 如何在 WSO2 中将时间戳转换为 UTC - How to Convert timestamp to UTC in WSO2 Golang:如何将 time.Time 转换为 Protobuf 时间戳? - Golang: How to Convert time.Time to a Protobuf Timestamp? 如何在aws athena中查询unix纪元时间戳中的时间 - How to query the time in unix epoch timestamp in aws athena SQL UTC 到 IST 的时区转换 - Time zone Conversion in SQL UTC to IST GCP - 日志指标 - 用于将 UTC 时间转换为 EST 时间的标签的正则表达式 - GCP - Log Metrics - Regex for labels to Convert UTC Time into EST Time
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM