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

Generate Epoch Time Operation Added #1045

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Generate Epoch Time Operation Added #1045

merged 1 commit into from
Feb 11, 2021

Conversation

n1073645
Copy link
Contributor

@n1073645 n1073645 commented Jun 1, 2020

As far as I can tell, I cannot extended the granularity to microseconds.

closes #1044

@n1474335 n1474335 merged commit e6c7899 into gchq:master Feb 11, 2021
@n1474335
Copy link
Member

I've modified this to use the W3C High Resolution Time API so that it now supports microsecond granularity. Nanoseconds are also an option in the operation arguments, but it just multiplies the microseconds value by 1000 so there is no actual accuracy to that level. Since the 'From UNIX Timestamp' operation supports nanoseconds, it made sense to include them here as an option.

I've also changed the name to 'Get Time' since an epoch refers to a static point in time (in this case, the UNIX epoch which was back in 1970) rather than the current time.

@n1073645 n1073645 deleted the EPOCH branch October 29, 2021 09:36
This pull request was closed.
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.

Operation request: Generate current Epoch / Unix Timestamp
2 participants