def date_default(obj):
    if isinstance(obj, datetime):
        return obj.isoformat()
    else:
        raise TypeError("%r is not JSON serializable"%obj)
Defines the non-window action handler used by
dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/jsonutil.py/date_default--crossover with--dataset/ETHPy150Open lsaffre/lino/lino/modlib/extjs/ext_renderer.py/ExtRenderer.js_render_custom_action