The Wikidata date format looks like this:
+2018-03-26T00:00:00Z
So if Douglas Adams was born on +1952-03-11T00:00:00Z
Then I can use Python to get the timestamp like this:
from datetime import datetime
from dateutil.parser import parse
datestring = '+1952-03-11T00:00:00Z'
dt_obj = parse(datestring[1:])
print(dt_obj.timestamp())
>>> -562032000.0
As you can see here I cannot use the + - value, which indicates that the date in AD or BC.
Moreover, I cannot work with an incomplete date:
For example Genghis Khan +1162-00-00T00:00:00Z
(day and month missing)
And dates in BC that are also incomplete: Plato -0427-00-00T00:00:00Z