getmonth()getmonth()

从日期时间获取月份号 (1-12)。Get the month number (1-12) from a datetime.

另一个别名:monthoyear()Another alias: monthoyear()

示例Example

print month = getmonth(datetime(2015-10-12))