Closed harrymkt closed 1 month ago
Hi,
I don't think we have something exactly like diff_years
, but datetime
implements the opSub
operator overload, so you can subtract two datetime
objects and compare the fields.
If I recall correctly though, we plan to replace the datetime object with Poco's Datetime class as opposed to an Angelscript addon, so it's possible this could be added in the future.
So, could you show an example diffing with it?
Hello. First of all, it would be best if this repository has discussion page turned on so questions can be asked in discussion page instead, more like a forum without using issues page, since the questions aren't always issues.
Anyway, is there any function for datetime?
For example, we currently have datetime object. We would need some methods like,
double datetime::diff_years(datetime@ other);
like the BGT's calendar diff functions. Or please provide if there are such functions already been added.I am making a similar function to date object in PHP with supporting format in BGT, so I want just now to it be converted to NVGT. Here it is: