Detect if a variable is a datetime object

后端 未结 7 1345
情深已故
情深已故 2021-02-02 05:31

I have a variable and I need to know if it is a datetime object.

So far I have been using the following hack in the function to detect datetime object:

i         


        
7条回答
提交回复
热议问题