Skip to content

Add timestamp formatting package for use across multiple serializers #14

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

Merged
merged 1 commit into from
Jun 12, 2017
Merged

Add timestamp formatting package for use across multiple serializers #14

merged 1 commit into from
Jun 12, 2017

Conversation

jeskew
Copy link
Contributor

@jeskew jeskew commented May 27, 2017

This PR adds support for the timestamp formats used by various serializers and parsers.

@jeskew jeskew mentioned this pull request May 27, 2017
@jeskew jeskew requested a review from chrisradek May 30, 2017 17:27
@jeskew jeskew mentioned this pull request May 30, 2017
return Math.floor(toDate(time).valueOf() / 1000);
}

function toDate(time: number|string|Date): Date {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add tests for toDate as well?

We should make sure we can convert from the 3 timestamp formats back to Date objects.

Copy link
Contributor

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeskew jeskew merged commit 0e19925 into aws:master Jun 12, 2017
@jeskew jeskew deleted the feature/protocol-timestamp branch June 15, 2017 17:43
trivikr referenced this pull request in trivikr/aws-sdk-js-v3 Dec 10, 2018
Add timestamp formatting package for use across multiple serializers
@lock
Copy link

lock bot commented Sep 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants