Fix time handling
Add example