pimutils / pimutils/khal

[enhancement] support human-friendly date parsing (e.g. "next monday at 3pm")

Open
#1,281 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

it would be great if we could create events with human-friendly readable date parsing such as:

  • next monday at 3pm
  • today at 2pm
  • in 1h
  • every tuesday at noon
  • once every 2 weeks on tuesday at noon
  • every first monday of the month

not all cases can be handled by dateparser but most i think (no need to run a big LLM on a 32GB memory GPU to parse this i think)

there's also recurrent which probably solves all cases!

recurrent.parse('every first monday of the month at 2pm until December')
'RRULE:BYDAY=1MO;BYHOUR=14;BYMINUTE=0;INTERVAL=1;FREQ=MONTHLY;UNTIL=20231201'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides example date expressions and points to dateparser and recurrent, but names no khal files, tests, or entry points. Start by locating the event-creation input parser and deciding which expressions and library behavior are in scope. Done should mean the supported examples create the intended events with coverage for the chosen parsing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.