GitHubContribute in GitHub: Edit online

dayofyear()

Returns the integer number represents the day number of the given year.

Syntax

dayofyear(date)

Parameters

Name Type Required Description
date datetime The datetime for which to determine the day number.

Returns

The day number of the given year.

Example

print dayofyear(datetime(2015-12-14))

Result

print_0
348