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

DateTime? #1

Open
aaronchi opened this issue Apr 12, 2011 · 5 comments
Open

DateTime? #1

aaronchi opened this issue Apr 12, 2011 · 5 comments

Comments

@aaronchi
Copy link

This library is great but is there any way to make it work with datetimes instead of just dates?

@rossmeissl
Copy link
Owner

Hi @aaronchi, certainly that's possible. We use the timeframe library in our CM1 web service, where everything is quantized down to the day level, so there's really no need for time. If you wanted to fork and get things running with DateTime I'd love to accept a pull request for this.

cc @seamusabshere

@seamusabshere
Copy link
Collaborator

hey @aaronchi if you don't feel confident about a pull request you could also write tests / give a good description of how the functionality would change with DateTime.

cc @rossmeissl

@aaronchi
Copy link
Author

Thanks guys. I just copied the lib into my project and started making some adjustments to see if it would work. For the most part, it seems to be working just by changing the from and to variables to a time object instead of a date object.

I'm not sure how this change would affect your use of the library, if there needs to be an option to set the range as a date or a time or if using times would work across the board. I'm going to continue to modify this just for my purposes and I may try a push later when I can write some proper specs.

@rossmeissl
Copy link
Owner

@aaronchi -- any progress? If not, shall I close this issue?

@rossmeissl
Copy link
Owner

@aaronchi -- ping

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

3 participants