Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Package #10

Open
SujalChoudhari opened this issue Sep 20, 2023 · 4 comments
Open

Time Package #10

SujalChoudhari opened this issue Sep 20, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Looking for contributions during HacktoberFest2023

Comments

@SujalChoudhari
Copy link
Owner

Coda needs a Time package for managing time.
Time package should give correct information about the current time and support time conversions.

Use FFI.h for the package, look at dll/Maths and dll/OS for inspiration.

@SujalChoudhari SujalChoudhari added enhancement New feature or request good first issue Good for newcomers hacktoberfest Looking for contributions during HacktoberFest2023 labels Sep 20, 2023
@yuvrxj-afk
Copy link

Hey Sujal , Can you provide more details about the package? What should it include specifically?
other the current time one.

@SujalChoudhari
Copy link
Owner Author

Hello.

I have called it as time library, but datetime should be the actual name.

features/functions:

  • get the current time (in various formats)
  • find different between time
  • get dates in various formats
  • find time between provided dates.

Extra:

  • time zones
  • convert time zones

Feel free to add more utility functions.

Note: if you want to use classes for time and date,
you can do so by using POINTER type for Values. i.e., store the instance/object onto heap and return back the pointer (as string) and infer it later.
OR
convert the classes into coda OBJECTS and return them as whole.

@SujalChoudhari
Copy link
Owner Author

There were some errors with the libraries you used for random package, which I fixed by swapping the libraries.
Also recheck how the definition file (.coda) file is written.

@yuvrxj-afk
Copy link

Alright , I'll look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Looking for contributions during HacktoberFest2023
Projects
None yet
Development

No branches or pull requests

2 participants