Converting dates to strings using Python

While working on converting ello.json to rss, I needed to convert the date formats, I needed to do it in Python and found the following code worked, using strptime and strfmtime. I had to augment the date string with the name of the day of the week attribute, so felt it had to via a date data type. (This is an important part of the requirement, since otherwise string manipulation would have been enough.) Finding exampes was hard, so I hope it helps, Continue reading “Converting dates to strings using Python”

Labour’s Leadership Election Timetable

Last Month, Harriet Harman writes,

As well as mounting a strong opposition to the Tories and understanding the lessons from our election defeat, we need to get on and elect a new Leader and Deputy Leader.

The NEC met this afternoon to decide on the timetable for the leadership election, ….

This leadership election will be run under the new rules we agreed last year: a broad and inclusive contest with one person, one vote. Continue reading “Labour’s Leadership Election Timetable”