The Time Traveler's Wife (2009)
The Time Traveler's Wife is a 2009 American romantic drama film based on Audrey Niffenegger's 2003 novel of the same name. Directed by Robert Schwentke, the film stars Eric Bana as Henry DeTamble, a Chicago librarian with a genetic disorder that causes him to time travel randomly as he tries to build a romantic relationship with his love Clare, played by Rachel McAdams.
More at Wikipedia.