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 search beatmapset by creation and ranking date #7358

Merged
merged 4 commits into from
Mar 26, 2021

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Mar 22, 2021

Not sure about the range tolerance so it's practically 0 at the moment.

format input example startTime endTime notes
y 2000 2000-01-01 00:00:00 +00:00 2001-01-01 00:00:00 +00:00 (add one year)
y-m 2000-01 2000-01-01 00:00:00 +00:00 2000-02-01 00:00:00 +00:00 (add one month)
y-m-d 2000-01-01 2000-01-01 00:00:00 +00:00 2000-01-02 00:00:00 +00:00 (add one day)
any valid carbon time 2000-01-01 00:00:00 +00:00 2000-01-01 00:00:00 +00:00 2000-01-01 00:00:01 +00:00 (add one second) weird things like "one month ago" is also supported. For exact search (=) it'll still only search within a very short range though so it's probably not useful there.
  • Timezone is UTC unless specified (can only be specified with full carbon time)
  • Valid separators are -, ., and / (optional)
    • 2020-11, 2020/11, 2020.11, 202011 are all valid
  • Leading zero also optional
    • note that 202011 is always 2020-11 and never 2020-01-01
    • similarly 2020111 is always 2020-11-01
  • Month and day value can go beyond their valid range (up to 99)
    • it'll overflow to year for month or to month and year for day: 2000-13-01 will end up as 2001-01-01
  • Year must be 4 digits
input operator actual comparison
= startTime >= x > endTime
> x >= endTime
>= x >= startTime
< x < startTime
<= x < endTime

Resolves #7335, resolves #4016.

Copy link
Collaborator

@notbakaneko notbakaneko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflicts 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add beatmap advanced search support for date Allow to search beatmaps between two dates
2 participants