Skip to content

Timestamp Fraction of second precision in custom format with comma separator in date #3961

Closed
@fraktury

Description

@fraktury

Hello,
I want to extract my date with the stage timestamp but my date contains a 3-digit precession (milliseconds) prefixed with a comma and not with a point as required by the custom format
Date example:
2021-07-07 17:40:45,052

The stage timestamp documentation indicate that i must use ".999" in my custom format but it is a comma that is used in my date.
I tried several format but none works.
format: "2006-01-02 15:04:05,999"
format: "2006-01-02 15:04:05,.999"
format: "2006-01-02 15:04:05.999"

To test, if I change the comma to a "." in a line, it is parsed correctly with this custom format: "2006-01-02 15:04:05.999"

As the "." is imposed, how can I do with my comma?
Having multiple lines in the same second, it is important that this information is taken. Regarding the format of the date in my log files, it is directly managed by the ASP engine, I have no control over it

Thank you for your help and any workaround you could offer me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleA stale issue or PR that will automatically be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions