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
Hi, someone gives me example, how can I use the date type to save and load with minidb?
The text was updated successfully, but these errors were encountered:
You should be able to use datetime.datetime, datetime.date and datetime.time, as these all have converters already pre-defined.
datetime.datetime
datetime.date
datetime.time
import datetime class Something(minidb.Model): name = str birthday = datetime.date favorite_time_of_day = datetime.time last_login = datetime.datetime
The definitions are here: https://github.com/thp/minidb/blob/master/minidb.py#L781 https://github.com/thp/minidb/blob/master/minidb.py#L797 https://github.com/thp/minidb/blob/master/minidb.py#L811
Sorry, something went wrong.
71352aa
No branches or pull requests
Hi, someone gives me example, how can I use the date type to save and load with minidb?
The text was updated successfully, but these errors were encountered: