question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Proposal] parse timestamps

See original GitHub issue

Feels like an easy thing to add:

parse a timestamp like 1637093119.558717 or 1637093119

which would convert to November 16, 2021 8:05:19 PM

Currently what thinks it’s a “phone number” or “American social security number” 🤷

Cheers 😎

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Nov 19, 2021

I don’t think parsing == checking, but I agree. However! I am not sure if this should be done at print time or API time, because I think this could genuinely be useful for people using the API 🤔

I think that API should return the same output as CLI, so at API time. I imagine checkers being like a filtration function: it gets a match object and can modify it. If the function returns None, then match will not appear in the output.

@whyboris I will update my issue with better naming and examples and will close this one since this is a duplicate.

1reaction
ghostcommented, Nov 18, 2021

My issue is about adding non-regex checkers and you provided a great situation where it could be useful. Pinging urls is just an example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cookbook: Parsing localized timestamps · Issue #2004 - GitHub
What is the general strategy for parsing timestamps that a user entered in localized format (non ISO 8601)?.
Read more >
timestamp parsing - python - Stack Overflow
I have a huge dataset and I am trying to parse timestamp column to have the following format: YYYY-MM-DD HH:MM:SS:DEC but the output...
Read more >
Temporal Cookbook - TC39
Temporal Cookbook. Overview. Overview; Running the cookbook files; Frequently Asked Questions. Current date and time; Unix timestamp. Converting between ...
Read more >
Re: [Proposal] - Kafka Input Format for headers, key and payload ...
The input format allows users to pick and choose the timestamp value either from ... We still need an input format to parse...
Read more >
New UUID Formats - IETF
This document is a proposal to update with three new UUID ... UUIDv7 is that timestamp values generated by one system and parsed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found