Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将从 MySQL 数据库中选择一个 TIMESTAMP。我想做的是将其与使用 ColdFusion 的当前时间进行比较。
如果 DIFF 中的 1+ 执行此操作.... 如果 LT 1hr 执行此操作....
谢谢
在 ColdFusion 中使用DateDiff()
DateDiff("h", yourQuery.date, now())