googleapis / googleapis/google-cloud-java

Improve Timestamp conversions

未关闭
#7,233 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p4 type: feature request
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

I guess this may be a duplicate of https://github.com/googleapis/google-cloud-java/issues/2472

We barely use java.util.Date on modern apps, java.time is around long enough, and it would be awesome if Timestamp could natively support LocalDateTime,

having to do `Timestamp.of(Date.from(ldt.atZone(ZoneId.systemDefault()).toInstant()))`

Kinda wears out after a while.

Does not seem like a lot of effort, but could remove a lot of boiler plate code on client side

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。