这是indexloc提供的服务,不要输入任何密码
Skip to content

Support wider range of time formats for --from and --to args #223

@pskrbasu

Description

@pskrbasu

Context

Currently we only have support for the following formats:

  • 2024-01-06
  • 2006-01-06T15:04:05
  • 2006-01-06T15:04:05.000
  • 2006-01-06T15:04:05Z07:00

We should extend this to include:

  • 2006-01-02T15:04:05.999999999Z07:00 (RFC3339Nano)
  • 2006-01-02T15:04:05Z07:00 (RFC3339)
  • Mon, 02 Jan 2006 15:04:05 -0700 (RFC1123Z)
  • Mon, 02 Jan 2006 15:04:05 MST (RFC1123)
  • Monday, 02-Jan-06 15:04:05 MST (RFC850)
  • 02 Jan 06 15:04 -0700 (RFC822Z)
  • 02 Jan 06 15:04 MST (RFC822)
  • Mon Jan _2 15:04:05 MST 2006 (UnixDate)
  • Mon Jan 02 15:04:05 -0700 2006 (RubyDate)
  • Mon Jan _2 15:04:05 2006 (ANSIC)
  • 02/Jan/2006:15:04:05 -0700 (WebLog Combined Format)
  • 02/Jan/2006:15:04:05 MST (WebLog Combined Format)
  • 2006-01-02 15:04:05
  • 2006-01-02 15:04:05 -0700
  • 2006-01-02 15:04:05 MST
  • 2006/01/02 15:04:05
  • 2006/01/02 15:04:05 -0700
  • 2006/01/02 15:04:05 MST
  • 2006-01-02
  • 2006-01-02T15:04:05 (ISO8601)
  • 2006-01-02T15:04:05.000 (ISO8601)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions