Skip to content

Add millis precision to unixtimestamp function#399

Merged
boulter merged 5 commits intomasterfrom
ms-unixtimestamp
Feb 12, 2020
Merged

Add millis precision to unixtimestamp function#399
boulter merged 5 commits intomasterfrom
ms-unixtimestamp

Conversation

@boulter
Copy link
Contributor

@boulter boulter commented Feb 12, 2020

We claimed to provide microsecond formatting options in the unixtimestamp filter, but we were rounding to seconds. Millis are now in there. Adding micros would change the return value and break compatibility.

Separately, the date/time formatter has been updated to return seconds in microseconds but will still be rounded to micros if the source of the date the source is millis precision such as the unixtimestamp function.

I also fixed the unixtimestamp to use the value of now() when passed no arguments.

@boulter boulter changed the title Add millis precision to unixtimestamp function Add micros precision to unixtimestamp function Feb 12, 2020
@boulter boulter requested a review from mattcoley February 12, 2020 02:49
@boulter boulter changed the title Add micros precision to unixtimestamp function Add millis precision to unixtimestamp function Feb 12, 2020
@boulter boulter merged commit 9d1c53e into master Feb 12, 2020
@boulter boulter deleted the ms-unixtimestamp branch February 12, 2020 17:32
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.

2 participants