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
datetime()
base_date
valid_date
valid_datetime
base_datetime()
valid_datetime()
f.datetime() >>> {'base_time': datetime.datetime(2018, 8, 1, 12, 0), 'valid_time': datetime.datetime(2018, 8, 2, 0, 0)} f.metadata("valid_datetime") >>> '2018-08-02T:00:00:00' f.metadata().valid_datetime() >>> datetime.datetime(2018, 8, 2, 0, 0) f.metadata().base_datetime() >>> datetime.datetime(2018, 8, 1, 12, 0)
A:
base_datetime
B:
Obviously, some of these his would not be backward compatible.
The text was updated successfully, but these errors were encountered:
sandorkertesz
No branches or pull requests
Current situation
datetime()
method. It returns a dict with thebase_date
andvalid_date
items (both are datetime.datetime objects)valid_datetime
generated metadata key. Field.metadata("valid_datetime") returns an ISO date string.base_datetime()
andvalid_datetime()
methods. They return datetime.datetime.Problems
Suggestions
A:
base_datetime
andvalid_datetime
keys indatetime()
.base_datetime
metadata keybase_datetime
andvalid_datetime
metadata keys to datetime.datetimeB:
valid_datetime()
andbase_datetime()
methods to Field.Obviously, some of these his would not be backward compatible.
The text was updated successfully, but these errors were encountered: