如何在 Crystal Reports 中将日期时间戳转换为 unix 时间? [英] How to convert datetime stamp to unix time in Crystal Reports?

查看:23
本文介绍了如何在 Crystal Reports 中将日期时间戳转换为 unix 时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将日期时间戳转换为 Unix 时间.我知道这不是最容易做的事情,也不是常见的事情,但我需要这样做.我一直在寻找如何做到这一点几个小时.

I need to convert a datetime stamp to Unix time. I understand that this is not the easiest thing to do nor a common thing to do, but I need to do it. I have been searching for how to do this for a few hours.

推荐答案

原来可以使用 datediff("s", date("1970-01-01 00:00:00"), {date_column}) 以获取 Crystal 中的 unix 时间戳.

It turns out that you can use datediff("s", date("1970-01-01 00:00:00"), {date_column}) to get the unix time stamp in Crystal.

这篇关于如何在 Crystal Reports 中将日期时间戳转换为 unix 时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆