假设我有一个时间戳,我如何计算当月的剩余时间(以天/小时为单位)?
发布于 2011-07-09 00:01:11
postgres=# select date_trunc('month', now() + interval '1 month') - now();
?column?
-------------------------
23 days 05:59:12.486972
(1 row)https://stackoverflow.com/questions/6625707
复制相似问题