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

Add method for fetching specific hour of each day #37

Open
krowvin opened this issue Jul 24, 2024 · 0 comments
Open

Add method for fetching specific hour of each day #37

krowvin opened this issue Jul 24, 2024 · 0 comments
Labels
minor-bump Version when you add functionality in a backward compatible manner

Comments

@krowvin
Copy link
Collaborator

krowvin commented Jul 24, 2024

In some reports users need an 8 am value but only have hourly data available.

Instead of having to loop and create a new Value() instance for each timestamp at 8 am

I propose we create a method on the Value class that lets you select an hour, minute, day, etc of the datetime object.

For example say you want 8 am values for each day of a months data.

Users could call:

myVar=Value(...)
myVar.setValuesAt(hour=8)

And then this would update the class to only have values at 8am or possibly just print them at this time.

@krowvin krowvin added major-bump Version when you make incompatible API changes minor-bump Version when you add functionality in a backward compatible manner and removed major-bump Version when you make incompatible API changes labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor-bump Version when you add functionality in a backward compatible manner
Projects
None yet
Development

No branches or pull requests

1 participant