samtupy / nvgt

The Nonvisual Gaming Toolkit
https://nvgt.gg
Other
43 stars 27 forks source link

Timespan new properties request #49

Open harrymkt opened 1 month ago

harrymkt commented 1 month ago

Hello.

I have found that with timestamp and timespan, we can create diff functions, like this:

datetime d(2020,7,19,0,0,0);
timespan diff=d.timestamp.elapsed;
alert("Different days",diff.days);
}


So, Will it be possible to add the properties years, and months?

Adding this so we don't have to calculate the days for the months and months for the years.

also, total_days, total_months, and possibly total_years Thanks.