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

Return duration as property on time object #95

Open
macandcheese opened this issue May 30, 2019 · 0 comments
Open

Return duration as property on time object #95

macandcheese opened this issue May 30, 2019 · 0 comments

Comments

@macandcheese
Copy link

Hi there, thanks for this package!

I'm having some trouble accessing the resultant "duration" of two dates as a property.

Take for example <Moment duration={date.startTime} date={date.endTime} />

This will correctly print the expected duration in a template, but doesn't make that value available as a property, since "duration" is already used for the startTime.

I would expect the syntax to be more along the lines of something like:

<Moment durationStart={date.startTime} durationEnd={date.endTime} />

and then have the result, myDate.props.duration available on the object.

Maybe I'm just missing something?

@macandcheese macandcheese changed the title Return duration as property on time Return duration as property on time object May 30, 2019
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