Untitled

Python boxlabs 29 Views Size: 673 bytes Posted on: Jan 5, 26 @ 8:58 PM
  1. TIME_PATTERNS = [
  2.     r"\bwhat(?:'s|\s+is)?\s+(?:the\s+)?time\b", # what's the time
  3.     r"\bwhat(?:'s|\s+is)?\s+(?:the\s+)?time\s+(?:in|for)\s+.+", # what's the time in/for X
  4.     r"\b(?:current|local)\s+time\b", # current time / local time
  5.     r"\btime\s+(?:right\s+)?now\b", # time now / time right now
  6.     r"^\s*now\??\s*$", # "now?"
  7.     r"\bwhat(?:'s|\s+is)?\s+(?:the\s+)?date\b", # what's the date
  8.     r"\btoday'?s?\s+date\b", # today's date
  9.     r"\bdate\s+today\b", # date today
  10.     r"\bwhat\s+day\s+is\s+it\b", # what day is it
  11.     r"\bday\s+of\s+week\b", # day of week
  12.     r"\byesterday\b", # yesterday
  13.     r"\btime\s+(?:in|for)\s+.+", # time in/for X
  14. ]

Raw Paste

Comments 0
Login to post a comment.
  • No comments yet. Be the first.
Login to post a comment. Login or Register
We use cookies. To comply with GDPR in the EU and the UK we have to show you these.

We use cookies and similar technologies to keep this website functional (including spam protection via Google reCAPTCHA or Cloudflare Turnstile), and — with your consent — to measure usage and show ads. See Privacy.