dictu-lang / Dictu

Dictu is a high-level dynamically typed, multi-paradigm, interpreted programming language.
https://dictu-lang.com
MIT License
267 stars 53 forks source link

[WIP] - Feature/datetime work #750

Open briandowns opened 1 month ago

briandowns commented 1 month ago

Datetime Module

What's Changed:

Refactor Datetime module to be class based and add additional features. This is marked as draft / WIP in order to get feedback on the implementation. If acceptable, I'll complete this with docs, tests, etc, as well as squash the commits down some more.

I added a "duration" object but I'm wanting to rethink it some. I can add that functionality in another PR.

Type of Change:

#

Housekeeping:

#

Screenshots (If Applicable):

Jason2605 commented 2 weeks ago

Sorry I've been slow on this! Looks as though all the tests are failing so we will need to look into these!

briandowns commented 2 weeks ago

I'll get them passing. Just wanted to make sure the approach is ok.

Jason2605 commented 2 weeks ago

Ah apologies mate! Yeah I like it, an object wrapper around the long value seems sensible to me :)