Skip to content

feat: add support for parsing time.#99

Merged
hchienjo merged 1 commit intomasterfrom
feat/time-parsing-support
Aug 19, 2025
Merged

feat: add support for parsing time.#99
hchienjo merged 1 commit intomasterfrom
feat/time-parsing-support

Conversation

@hchienjo
Copy link
Contributor

Time parsing commit cherry picked from #96

@hchienjo hchienjo self-assigned this Aug 14, 2025
@hchienjo hchienjo force-pushed the feat/time-parsing-support branch 2 times, most recently from 6b956f4 to 0419b82 Compare August 14, 2025 05:12
@hchienjo hchienjo marked this pull request as ready for review August 14, 2025 05:14
}

if t == timeType {
d, err := time.Parse(time.RFC3339, data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth documenting this expected format in the README, for example here.

@hchienjo hchienjo force-pushed the feat/time-parsing-support branch from 0419b82 to 2ad8e86 Compare August 19, 2025 09:07
@hchienjo hchienjo force-pushed the feat/time-parsing-support branch from 2ad8e86 to 015dc06 Compare August 19, 2025 09:10
@hchienjo hchienjo requested a review from philippgille August 19, 2025 09:15
@hchienjo hchienjo merged commit ed0849e into master Aug 19, 2025
4 checks passed
@philippgille
Copy link
Member

I think this is missing the time support in flags.go.

I also think we should support time.Time and not only the pointer. Testing without the pointer doesn't work currently. I have a fix in the works.

@philippgille
Copy link
Member

Non-pointer time.Time support: #100

@philippgille
Copy link
Member

Flag support in draft: #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants