-
Notifications
You must be signed in to change notification settings - Fork 42
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
Question Convert date to milliseconds (epoch millis) #144
Comments
Hi, pragmatically you could do
|
That is good enough for me Closing the ticket Thank you |
Is there a way to convert epoch milliseconds to human readable? Something like 1679930053000 |
Afraid not. The parser trick above doesn't even work because of ambiguity (it's unclear where %s ends and the milliseconds are supposed to start). The only way is to convert the timestamp to epoch time somehow. E.g. if the value is in a shell variable
or if it comes on stdin, plug an awk in between:
|
How do i get epoc milliseconds from a custom date
dateconv "20220518181552" -i '%Y%m%d%H%M%S' -f %rs
gives me epoch second But how do i get milli second
The text was updated successfully, but these errors were encountered: