Temporal mechanics