Function get_weekday()

← Back to Module time



Module time → get_weekday()

Description

Get week day value (0 to 6, where Sunday is 0) from the given timestamp

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


Parameters


Return Value


Usage Example

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