We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doing this to get data is clunky (say for the top of the current hour):
date = datetime.utcnow() request_time = date.replace(minute=0, second=0, microsecond=0) ds = cat.datasets.filter_time_nearest(request_time)
What about a utcnow type function that takes a precision argument or similar that zeros out everything smaller than it:
utcnow
precision
roundedutcnow(precision='day') # or month, hour, minute, second
Naming is the hard thing here, but it sure seems useful - or maybe its a rounder that operates on a datetime?
The text was updated successfully, but these errors were encountered:
I think the feature seems reasonable. Could also make it take a datetime as an optional argument, defaulting to utcnow.
Sorry, something went wrong.
No branches or pull requests
Doing this to get data is clunky (say for the top of the current hour):
What about a
utcnow
type function that takes aprecision
argument or similar that zeros out everything smaller than it:Naming is the hard thing here, but it sure seems useful - or maybe its a rounder that operates on a datetime?
The text was updated successfully, but these errors were encountered: