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

Does Cyclone Scheme have a method of handling dates? #529

Open
may opened this issue Mar 10, 2024 · 3 comments
Open

Does Cyclone Scheme have a method of handling dates? #529

may opened this issue Mar 10, 2024 · 3 comments

Comments

@may
Copy link

may commented Mar 10, 2024

Hi! Does Cyclone Scheme have a method of handling dates and times beyond (current-seconds)?

I've scoured the documentation but there doesn't appear to be any way to format an ISO 8601 compliant date string (eg YYYY-MM-DD HH:MM) using the built-in libraries, or anything available in Winds.

It also appears that SRFI-19 is not supported.

Am I missing something?

I'm enjoying using Cyclone and it's speed and portability, but I'm not interested in rolling my own bug-ridden date library. Obviously I could download the code for SRFI-19 myself and use that, but it would be nice if this basic functionality was smoothy implemented out of the box.

Thanks for creating a great -- and super well documented!! -- implementation!

@justinethier
Copy link
Owner

Thanks for the report @may!

I agree it would be nice if this was provided. The issue is that support has not been added for many libraries, such as SRFI-19. Still, it there is a reference implementation of that SRFI and it should be possible to port that to a library: https://github.com/scheme-requests-for-implementation/srfi-19

Once there is a working library we can make that available via Winds like many of the other SRFI's that have been ported. Do you have any interest in doing a first-cut of organizing the SRFI code into a library?

@may
Copy link
Author

may commented Mar 13, 2024

I'd love to, but unfortunately I am currently overcommitted; if this changes I'll be sure to let you know.

For future reference, if I was to take this on, I'd start here: https://github.com/OpinionatedGeek/SRFI19

@justinethier
Copy link
Owner

That's fair, there's only so much time to go around.

Thanks for the link! That should be a good place to start, depending on how much it relies on Chibi-specific functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants