python 示例
Python date.toordinal()方法 (Python date.toordinal() Method)
date.toordinal() method is used to manipulate objects of date class of module datetime.
date.toordinal()方法用于处理datetime模块的date类的对象。
It is used to return the proleptic Gregorian ordinal of the date, where January 1 of year 1 has ordinal 1. If January 1 of year 1 has ordinal number 1 then January 2 year 1 will have ordinal number 2 and so on. It is an instance method which means that it works on an instance of the class.
它用于返回日期的多边格里高利度序数,其中1年1月1日具有序数1。如果1年1月1日具有序数1,