Skip to content

Cookbook: Parsing localized timestamps #2004

Open
@nicolasr75

Description

@nicolasr75

What is the general strategy for parsing timestamps that a user entered in localized format (non ISO 8601)?

F.e. in a German locale a user may enter '22.01.2022 13:45:00'.

Assuming the software knows the time zone, the calendar and the locale, I would like to end up with a (UTC) Instance for internal arithmetics.

What do you recommend for parsing user input? Is there already any documentation about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationAdditions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions