I want to restrict files from main to be older than 04 Jan 2013. In clearcase I can accomplish this using time command:
time 04-Jan-2013.01:00:00
element * /main/LATEST
I would like to know how to do this in perforce?
The perforce sync page mentions that you can use a date:
Label or Date
Sync to a specific symbolic revision revision (either a label or date). Enter the label or date in the space provided.
That seems more appropriate that a p4 rollback, which applies changelist per changelist.
From p4 sync:
p4 sync @2011/06/24
Bring the workspace into sync with the depot as of midnight, June 24, 2011. (That is, include all changes made during June 23.)