Chrono utility #16
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ArkForgeLabs/Astra#16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There should exist a utility for time management and calculation
This should be a pretty good set of fields to be added for the date and time:
https://www.w3schools.com/jsref/jsref_obj_date.asp
Are we going to be heavy on timezone-based computation? More than just conversions from local time?
I think just the UTC with the functionality in the listed link should be a good start. Other timezones and functionality can be derived from that base as time goes, and if theres more demand, we can implement them into Astra.
So don't worry, can keep it simple.
Then i agree with you, chrono is definitely a better option since it will be easier in the future when timezone functionality might evolve. Also, can you provide me with a good source so i can make some sense of what to do with the lua interop?
yeah for sure, the added libraries usually come in 3 parts:
UserData), making a lua function and then setting it to the globals with prefix 'astra_internal__', and then running the registration code in this function:github.com/ArkForgeLabs/Astra@9dacc84316/src/components/mod.rs (L15)so that the runtime can do it whenever everything else is registered.After you're done with all of those, you can run 'cargo run -- astra_build.lua pack' for bundling the lua code. That should be it. Can test it out with writing an example as well!
I should really put these on a CONTRIBUTING.md or in docs for other contributors too
For the parse function, should I implement all these formats?
Edit: Would it be fine if I just let the user specify the format?
I think chrono can parse it itself,
Just get it as String and it should be fine