Datetime Function Existence #41
-
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, 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:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
So, could you show an example diffing with it? |
Beta Was this translation helpful? Give feedback.
-
This has been resolved with using |
Beta Was this translation helpful? Give feedback.
Hi,
I don't think we have something exactly like
diff_years
, butdatetime
implements theopSub
operator overload, so you can subtract twodatetime
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.