简体   繁体   English

没有时区的playframework anorm Postgresql时间戳

[英]playframework anorm postgresql timestamp without time zone

Most web searches on this topic result in results which are years old. 关于该主题的大多数网络搜索结果都存在多年了。

Are there any updates to working with timestamps in Playframework / Anorm? 在Playframework / Anorm中使用时间戳是否有任何更新?

I have a postgesql column defined as... 我有一个定义为的postgesql列...

timestamp without time zone NOT NULL

I'm looking for how to work with this column using Anorm. 我正在寻找如何使用Anorm处理此专栏。 Links? 链接? Docs? 文档?

I am looking for the basics: 我在寻找基本知识:

  • what type do i use in my case class (scala) 我在案例类别中使用什么类型(scala)
  • how to map to-from this type and the postgresql column without loss of time resolution 如何在这种类型和postgresql列之间进行映射,而又不损失时间分辨率

     case class VersionInfo( version: String, versionTimestamp: *// what type? joda-time? or java.util?* ){} 

A sample or help doc page is what I am looking for. 我正在寻找一个样本或帮助文档页面。

For now vanilla Java Date is supported with Postgresql TS, there is no JODA Time converter (but you can add an request for on Play github project). 目前,Postgresql TS支持香草Java日期,尚无JODA时间转换器(但您可以在Play github项目上添加请求)。

Best 最好

暂无
暂无

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

相关问题 PostgreSQL 参数错误(timestamp with time zone, timestamp without time zone) - PostgreSQL Parameter error (timestamp with time zone, timestamp without time zone) PostgreSQL的“没有时区的时间戳”的休眠映射? - hibernate mapping for postgresql “timestamp without time zone”? PostgreSQL改变没有时区的类型时间戳 - >带时区 - PostgreSQL alter type timestamp without time zone -> with time zone PostgreSQL:运算符不存在:没有时区的时间戳==没有时区的时间戳 - PostgreSQL: operator does not exist: timestamp without time zone == timestamp without time zone Python- postgresql时间戳和没有时区的时间 - Python- postgresql timestamp and time without time zone PostgreSQL错误地从无时区的时间戳转换为有时区的时间戳 - PostgreSQL wrong converting from timestamp without time zone to timestamp with time zone PostgreSQL错误函数width_bucket(timestamp with time zone,timestamp without time zone[])不存在 - PostgreSQL error function width_bucket(timestamp with time zone, timestamp without time zone[]) does not exist 为什么即使没有时区偏移,PostgreSQL 显然也会将带有时间戳的字符串强制转换为“TIMESTAMP WITH TIME ZONE”? - Why does PostgreSQL apparently coerce a string with timestamp to `TIMESTAMP WITH TIME ZONE` even without the time zone offset? PostgreSQL:“带时区的时间戳”和“在时区”的别名 - PostgreSQL: Aliases for “timestamp with time zone” and “at time zone” PostgreSQL:42883运算符不存在:没有时区的时间戳 - PostgreSQL: 42883 Operator does not exist: timestamp without time zone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM