We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think it would be useful to add a higher-resolution version of Dates.now(). Possible implementation could be something like
Dates.now()
function now_μs() tv = Libc.TimeVal() tm = Libc.TmStruct(tv.sec) return TimeDate(tm.year + 1900, tm.month + 1, Int64(tm.mday), Int64(tm.hour), Int64(tm.min), Int64(tm.sec)) + Microsecond(tv.usec) end
which gives the current date/time to the microsecond level.
This expression gives it up to nanosecond resolution but in GMT time zone.
now_ns() = TimeDate(1970) + Nanosecond(time()*1e9)
I am not sure how to get in the system timezone.
If this is fine, I can make a PR with this bit inside.
The text was updated successfully, but these errors were encountered:
please do
Sorry, something went wrong.
No branches or pull requests
I think it would be useful to add a higher-resolution version of
Dates.now()
. Possible implementation could be something likewhich gives the current date/time to the microsecond level.
This expression gives it up to nanosecond resolution but in GMT time zone.
I am not sure how to get in the system timezone.
If this is fine, I can make a PR with this bit inside.
The text was updated successfully, but these errors were encountered: