Time graphs and shelves