Function get_year()

← Back to Module time



Module time → get_year()

Description

Get year value from the given timestamp

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


Parameters


Return Value


Usage Example

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