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

Using between, or adding a random number of X time to a date #22

Open
electronicalias opened this issue Jul 29, 2020 · 0 comments
Open

Comments

@electronicalias
Copy link

I have multiple timestamps in the streamed record I'm trying to reproduce. Each one has a start and end date. I'm trying to randomise the end date by adding a random number of milliseconds to the start date.

I get the start date from {{date.utc}} and I can see there is a function for date.between() - however it's not clear how you would use this. I'm stuck on how to get the current date into the function:

{{date.between(<current_date>,<num_of_milliseconds>)}} doesn't work and neither have any of my other guesses. Any help on how to format this would be appreciated.

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

1 participant