Jorge Luis Borges stories often mess with the concept of time, The Garden of Forking Paths coming first to mind