-
Notifications
You must be signed in to change notification settings - Fork 192
Closed
Labels
Description
I'm using python-whois (a much needed library) with Celery. Celery commonly uses the standard json library, which doesn't easily handle datetime objects.
Would it be possible to add a new argument to get_whois allowing for ISO 8601 output? My naive test was basically replacing parse.py:413 and 417 with:
parsed_dates.append(datetime.datetime(year, month, day, hour, minute, second).isoformat()
Is that something you think would be possible / advisable? It would always be possible to convert any dates externally, but it would certainly be very convenient.