def METHOD_NAME():
    ufile = UFFile(pyart.testing.UF_FILE)
    ray = ufile.rays[0]
    assert ray.get_datetime() == datetime(2011, 5, 20, 10, 54, 16)
    # test case where midnight is incorrectly represented as 24:00:00
    ray.mandatory_header["hour"] = 24
    ray.mandatory_header["minute"] = 0
    ray.mandatory_header["second"] = 0
    assert ray.get_datetime() == datetime(2011, 5, 21, 0, 0, 0)