Skip to content

Commit 9b98740

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 0f52a8f commit 9b98740

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@
5959

6060
# General information about the project.
6161
project = "Adafruit PCF8523 RTC Library"
62+
creation_year = "2016"
6263
current_year = str(datetime.datetime.now().year)
63-
copyright = current_year + " Philip Moyer"
64+
year_duration = (
65+
current_year
66+
if current_year == creation_year
67+
else creation_year + " - " + current_year
68+
)
69+
copyright = year_duration + " Philip Moyer"
6470
author = "Philip Moyer"
6571

6672
# The version info for the project you're documenting, acts as replacement for

0 commit comments

Comments
 (0)