Skip to content

ISO 8601 date format #5

@chorsley

Description

@chorsley

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions