How to calculate no of days from two exotic dates

Hi there,
Can any one tell how to calculate no of days between two exotic dates ?

File attached is grasshopper definition i am trying to get this. but failing to to get leap year condition.

Regards,
Ranjit
Date difference.gh (15.5 KB)

It seems to work when you don’t deconstruct the dates and use the datetime objects themselves in GhPython to do the calculation and get a real timespan.

Proof:

Date difference rev.gh (12.1 KB)

3 Likes