-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support for reference times #5
Labels
enhancement
New feature or request
Comments
The
|
OK, here's an example query (based on yours) I can use for this: with times as (
select
datetime('now') as t
union
select
datetime('now', '-1 year')
union
select
datetime('now', '-3 years')
)
select t, dateutil_parse_fuzzy("This is due 10 september", t) from times |
simonw
added a commit
to simonw/latest-datasette-with-all-plugins
that referenced
this issue
Mar 1, 2022
To demonstrate simonw/datasette-dateutil#5
Amazing, thank you! That will be very handy for some scraping of hand-managed sites I'm doing with https://github.com/danp/scraperlite. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this plugin!
As the example says:
Maybe dateutil doesn't actually support this but it would be really nice to be able to give a reference time to dateutil_parse_fuzzy and probably other functions. For example, suppose I had a table like:
It would be nice to be able to do something like:
And have dateutil_parse_fuzzy work with t as its reference point.
The text was updated successfully, but these errors were encountered: