run-->cleartool man config_spec
察看里面的time rule
–time date-time
Modifies the meaning of the special version label LATEST: the rule selects from a branch the last version that was created before a particular time. The date-time argument is specified in one of the standard formats:
date.time | date | time | now where:
date := day-of-week | long-date
time := h[h]:m[m][:s[s]] [UTC [ [ + | - ]h[h][:m[m] ] ] ]
day-of-week := today |yesterday |Sunday | ... |Saturday |Sun | ... |Sat
long-date := d[d]–month[–[yy]yy]
month := January |... |December |Jan |... |Dec
Specify time in 24-hour format, relative to the local time zone. If you omit the time, the default value is 00:00:00. If you omit date, the default is today. If you omit the century, year, or a specific date, the most recent one is used. Specify UTC if you want to resolve the time to the same moment in time regardless of time zone. Use the plus (+) or minus (-) operator to specify a positive or negative offset to the UTC time. If you specify UTC without hour or minute offsets, Greenwich Mean Time (GMT) is used. (Dates before January 1, 1970 Universal Coordinated Time (UTC) are invalid.)
The creation times of the versions on the branch are looked up in their create version event records. (No error occurs if you use a –time clause in a rule that does not involve the version label LATEST; the clause has no effect.)
The –time clause in a particular rule overrides any general time rule currently in effect. (See Time Rules )
Note: A –time clause must precede any other optional clauses and may not include any query language constructs.
Examples:
/main/LATEST –time 10–Jul.19:00 Most recent version on main branch, as of 7 P.M. on July 10.
.../bugfix/LATEST –time yesterday Most recent version on a branch named bugfix (which can be at any branching level), as of the beginning of yesterday (12 A.M.).
/main/bugfix/LATEST –time Wed.12:00 Most recent version on subbranch bugfix of the main branch, as of noon on the most recent Wednesday.
–time 5–Dec.13:00 December 5, at 1 P.M.
–time 11:23:00 Today, at 11:23 A.M.
–time 12–jun–99 June 12, 1999, at 00:00 A.M.
–time now Today, at this moment.
–time 9-Aug.10:00UTC August 9, at 10 A.M. GMT.
The date/time specification is evaluated when you set or edit the config spec, and whenever the view_server process is started (for example, with startview or setview (dynamic views only)). Thus, the meaning of a relative specification, such as today, may change over time. However, the date/time is not evaluated at run time. Therefore if you last performed one of the commands listed above four days ago, the meaning of a relative specification, such as today, has the value of the date four days ago, not the value of the date today.