Function get_month()

← Back to Module time



Module time → get_month()

Description

Get month value (1 to 12) from the given timestamp

get_month(timestamp = now(), utc = false)


Parameters


Return Value


Usage Example

import time
 
get_month()
get_month(create_datetime(2021, 12, 22))