我如何在 KDB 中按月 select?

How do I select by month in KDB?

我有一个 table 的形式

t                             r             v    
-------------------------------------------------
2016.01.04D09:51:00.000000000 -0.01507338   576  
2016.01.04D09:52:00.000000000 -0.001831502  200  
2016.01.04D11:37:00.000000000 -0.001100514  583  
2016.01.04D12:04:00.000000000 -0.001653045  1000 

我想获取 2020 年 10 月的值。

我试过查询:

select from x where t.month = 2020.10

但这没有用。我想我可能需要投射日期类型?我做错了什么?

尾部的m让解释器知道原子是月类型而不是浮点类型。

q)type 2020.10
-9h
q)type 2020.10m
-13h
q)select from x where t.month=2020.10
t
-
q)select from x where t.month=2020.10m
t
-----------------------------
2020.10.20D20:20:00.000000000