指定日期时:
datetime.datetime(2011, 8, 15)
Run Code Online (Sandbox Code Playgroud)
我如何才能知道这是本月的第三周?
如果我想要这个约会怎么办?
datetime.datetime(2011, 2, 28) //should return 4
datetime.datetime(2011, 8, 29) //should return 5
Run Code Online (Sandbox Code Playgroud)
据我所知,如果给定日期是闰年,只有2月有4周(bissextile)