Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Consider formatting times with a T rather than a space between date and time #213

Closed
@myronmarston

Description

@myronmarston

Quoting @dchelimsky from rspec/rspec.github.io#70:

I think it would be easier to read the time format if it had no spaces in it e.g. 2015-06-09T07:49:16.610635000-0700 rather than 2015-06-09 07:49:16.610635000 -0700. It's not obvious in the examples in the post, which all line up very nicely, but it would be more obvious in a collection of times.

I'm on the fence here. It's not obvious to me how the T makes it read easier (in fact, I lean towards it making it harder to read -- the space provides a visual separation between date and time, whereas with the T it runs together). Also Time#inspect does not have the T. Our custom time formatting just prints the seconds as a full float rather than as an integer. The rest of the time formatting is the same as ruby's built-in time formatting, which seems like a good way to go, or at least a good way to start.

Regardless, if there's community consensus around the T being an improvement I'd be happy to see it changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions