Is this easy to implement into Codeigniter and if so how?
You could very easily implement this into CodeIgniter, you can actually just drop it right into your library folder and then start using it:
while($r = $this->when->next())
echo $r->format('c') . "<br />";