[英]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: 我在寻找基本知识:
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.