ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: yearsBetween

yearsBetween(d1, d2) returns the number of years between the date structures d1 and d2.

Example:

d1 ≔ encodeDate(2010, 06, 19)

year: 2010
month: 6
day: 19
weekOfYear: 24
dayOfYear: 170
dayOfWeek: 6

d2 ≔ date(0)

year: 2010
month: 6
day: 23
weekOfYear: 25
dayOfYear: 174
dayOfWeek: 3

yearsBetween(d1, d2)

0.0109514031485