Skip to content

AsDateTime fails with superfluous text in chracter vector #1

@huzunali

Description

@huzunali

Hi,

I am getting the following behavior with AsDateTime:

flipTime::AsDateTime("Thu, 1st of July 2004 at 22:30:00")
[1] "2004-09-01 22:30:00 UTC"
flipTime::AsDateTime("Thu, 1 of July 2004 at 22:30:00")
[1] "2004-10-01 22:30:00 UTC"
flipTime::AsDateTime("Thu, 1st July 2004 at 22:30:00")
[1] "2004-09-01 22:30:00 UTC"

However,

flipTime::AsDateTime("Thu, 1 July 2004 at 22:30:00")
[1] "2004-07-01 22:30:00 UTC"

Is this expected behavior?

Many thanks,

H

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions