reminders.utils module

reminders.utils.parse_time(text, user_tz)[מקור]

Very lightweight time parser for common phrases.

Supports: - ”tomorrow HH:MM“ - ”HH:MM“ (today) - ”in X hours“ / ”בעוד X שעות“ / ”בעוד שעה“ - ”in X minutes“ / ”בעוד X דקות“ / ”בעוד דקה“ - ”בעוד רבע שעה“ (15 דקות) / ”בעוד חצי שעה“ (30 דקות) - ISO-like ”YYYY-MM-DD HH:MM“

Return type:

Optional[datetime]

פרמטרים: