如何准确地将存储 UNIX 时间戳 [INT] 的 INFORMIX-SE 审计表列转换为日期和时间?
INFORMIX-SE:
SE 允许您为任何表创建审计文件。审计文件与被审计的表具有相同的模式,加上一个由多列组成的标题,其中一列是 a_time INTEGER,其中包含添加、更新或删除行的 UNIX 时间戳。 UNIX 时间戳是一个 INTEGER 值,对应于自 1970-01-01T00:00:00Z 以来的秒数。谁能想出一种算法可以准确地将这些秒转换为日期和时间?
INFORMIX-SE:
SE allows you to create an audit file for any table. The audit file has the same schema as the table being audited plus a header consisting of several columns, one of them being a_time INTEGER, which contains a UNIX timestamp of when the row was added, updated or deleted. UNIX timestamp is an INTEGER value corresponding to the number of seconds since 1970-01-01T00:00:00Z. Can anyone come up with an algorithm which can accurately convert these seconds into a date and time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个向您展示如何执行此操作的算法: http://forums.mrplc.com/index.php?showtopic=13294&view=findpost&p=65248
Here is an algorithm that shows you how to do it: http://forums.mrplc.com/index.php?showtopic=13294&view=findpost&p=65248