变量名report_time,变量类型double,格式%tc。我想把大于2021年12月10日0时并且小于2021年12月10日16时的观测值保留,但是全部的观测值都被删除了。。。
请大家帮忙看看,非常感谢!
数据和代码如下
keep if report_time>=date("10 dec 2021 00:00:00","DMYhms") & report_time<=date("10 dec 2021 16:00:00","DMYhms")
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------