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

feat(FromUnixPipe):Add unix pipe to parse unix timestamp to moment #16

Merged
merged 2 commits into from
Feb 24, 2016

Conversation

lanocturne
Copy link
Contributor

Add from unix pipe to support parse unix timestamp: number or string
#15

const unixPipe = new FromUnixPipe(),
datePipe = new DateFormatPipe();
const result = datePipe.transform(unixPipe.transform(1456263980), ['hh:mmA']);
expect(result).toBe('01:46PM');
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks! This test is not required, as it is beyond the scope of just testing unixPipe. Also, it will fail in different timezones

urish added a commit that referenced this pull request Feb 24, 2016
feat(FromUnixPipe):Add unix pipe to parse unix timestamp to moment
@urish urish merged commit 819a4de into urish:master Feb 24, 2016
@urish
Copy link
Owner

urish commented Feb 24, 2016

Thanks!

@urish
Copy link
Owner

urish commented Feb 25, 2016

Released as 0.4.2

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.

3 participants