dayofyear()dayofyear()

返回一个整数,该整数表示给定年份的第几天。Returns the integer number represents the day number of the given year.

dayofyear(datetime(2015-12-14))

语法Syntax

dayofweek(a_date)dayofweek(a_date)

参数Arguments

  • a_datedatetimea_date: A datetime.

返回Returns

给定年份的 day numberday number of the given year.