Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support microseconds in timestamp format #61

Closed
omeraha opened this issue Aug 18, 2019 · 3 comments
Closed

Feature request: Support microseconds in timestamp format #61

omeraha opened this issue Aug 18, 2019 · 3 comments

Comments

@omeraha
Copy link

omeraha commented Aug 18, 2019

Winston@3, AWS Linux instance, Javascript

What's the feature?
Add microseconds precision to the timestamp format. something like:
timestamp({ format: 'YYYY-MM-DD HH:mm:ss.' })

What problem is the feature intended to solve?
My use case is logging (I'm using Winston which in turn is using fecha under the hood for timestamp formatting). Log aggregation of logs created by many instances of different microservices requires a precision level higher than milliseconds in order to better sort the logs based on their timestamp.

Is the absence of this feature blocking you or your team? If so, how?
Not a blocker, but a very desirable feature.

Is this feature similar to an existing feature in another tool?
No that I know of.

Is this a feature you're prepared to implement, with support from us?
I'd be willing to look into it.

@taylorhakes
Copy link
Owner

I don’t think the Javascript Date object supports microseconds. This library just formats Date objects. Do you know of a way to make it work?

@omeraha
Copy link
Author

omeraha commented Aug 18, 2019

AFAIK, date support up to milliseconds only. Looking at the code, I saw that it is entirely based on the date object, so I guess you can close this feature request.
Thanks anyway!

@taylorhakes
Copy link
Owner

No problem. If this becomes possible in the future, we can reopen.

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

No branches or pull requests

2 participants