code: def test_time(t=english.time):
      assert_adatetime(
          t.date_from("13:05", basedate), hour=13, minute=5
      )
      assert t.date_from("28:91", basedate) is None
  
      assert_adatetime(t.date_from("3pm", basedate), hour=15)
      assert_adatetime(t.date_from("3 pm", basedate), hour=15)
      assert_adatetime(t.date_from("10pm", basedate), hour=22)
      assert_adatetime(t.date_from("10 pm", basedate), hour=22)
      assert_adatetime(t.date_from("3am", basedate), hour=3)
      assert_adatetime(
          t.date_from("3:15 am", basedate), hour=3, minute=15
      )
      assert_adatetime(
          t.date_from("5:10pm", basedate), hour=17, minute=10
      )
      assert_adatetime(
          t.date_from("12:45am", basedate), hour=0, minute=45
      )
      assert_adatetime(
          t.date_from("12:45pm", basedate), hour=12, minute=45
      )
      assert_adatetime(
          t.date_from("5:45:05 pm", basedate),
          hour=17,
          minute=45,
          second=5,
      )
  
      assert_adatetime(
          t.date_from("noon", basedate),
          hour=12,
          minute=0,
          second=0,
          microsecond=0,
      )
      assert_adatetime(
          t.date_from("midnight", basedate),
          hour=0,
          minute=0,
          second=0,
          microsecond=0,
      )
  
      assert t.date_from("15 am", basedate) is None
      assert t.date_from("24:00", basedate) is None
      assert t.date_from("12:65", basedate) is None
  
file_path: whoosh/tests/test_dateparse.py
imports: from whoosh.qparser.dateparse import *
label_desc: Use image node_id 7 for calling a global function with example usage: test_time(t) without return types