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

Support parsing String into DateTime values #677

Closed
yorickpeterse opened this issue Dec 29, 2023 · 0 comments
Closed

Support parsing String into DateTime values #677

yorickpeterse opened this issue Dec 29, 2023 · 0 comments
Assignees
Labels
feature New things to add to Inko, such as a new standard library module std Changes related to the standard library
Milestone

Comments

@yorickpeterse
Copy link
Collaborator

yorickpeterse commented Dec 29, 2023

Description

Similar to many other languages, we should add support for parsing String values into DateTime values. The usual approach is to specify the expected format using printf like values (e.g. %Y-%m-%d). I am however not sure I want to repeat that, given it's not really clear what the expected format is unless you're intimately familiar with all the format flags.

Related issues

Related work

@yorickpeterse yorickpeterse added feature New things to add to Inko, such as a new standard library module std Changes related to the standard library labels Dec 29, 2023
@yorickpeterse yorickpeterse added this to the 0.18.0 milestone Oct 22, 2024
@yorickpeterse yorickpeterse self-assigned this Dec 3, 2024
yorickpeterse added a commit that referenced this issue Dec 20, 2024
This adds the method std.time.DateTime.parse and associated types to
support locale-aware date/time parsing. DateTime.parse uses a format
string similar to that of strftime(2)/strptime(2), and supports
different locales (English, Dutch and Japanese are included).

The list of supported formatting sequences is limited to the essentials,
but we can expand this over time where necessary.

This fixes #677.

Changelog: added
yorickpeterse added a commit that referenced this issue Dec 20, 2024
This adds the method std.time.DateTime.parse and associated types to
support locale-aware date/time parsing. DateTime.parse uses a format
string similar to that of strftime(2)/strptime(2), and supports
different locales (English, Dutch and Japanese are included).

The list of supported formatting sequences is limited to the essentials,
but we can expand this over time where necessary.

This fixes #677.

Changelog: added
yorickpeterse added a commit that referenced this issue Dec 20, 2024
This adds the method std.time.DateTime.parse and associated types to
support locale-aware date/time parsing. DateTime.parse uses a format
string similar to that of strftime(2)/strptime(2), and supports
different locales (English, Dutch and Japanese are included).

The list of supported formatting sequences is limited to the essentials,
but we can expand this over time where necessary.

This fixes #677.

Changelog: added
yorickpeterse added a commit that referenced this issue Dec 20, 2024
This adds the method std.time.DateTime.parse and associated types to
support locale-aware date/time parsing. DateTime.parse uses a format
string similar to that of strftime(2)/strptime(2), and supports
different locales (English, Dutch and Japanese are included).

The list of supported formatting sequences is limited to the essentials,
but we can expand this over time where necessary.

This fixes #677.

Changelog: added
yorickpeterse added a commit that referenced this issue Dec 21, 2024
This adds the method std.time.DateTime.parse and associated types to
support locale-aware date/time parsing. DateTime.parse uses a format
string similar to that of strftime(2)/strptime(2), and supports
different locales (English, Dutch and Japanese are included).

The list of supported formatting sequences is limited to the essentials,
but we can expand this over time where necessary.

This fixes #677.

Changelog: added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New things to add to Inko, such as a new standard library module std Changes related to the standard library
Projects
None yet
Development

No branches or pull requests

1 participant