Specifying the Date
Revisions are timestamped by time and date of check-in. Several keyword strings include the date in their values. Dates can be supplied in options to ci, co, and rlog. RCS uses the following date format as its default:
2000/01/10 02:00:00 Year/month/day timeThe default time zone is Greenwich Mean Time (GMT), which is also referred to as Coordinated Universal Time (UTC) . Dates can be supplied in free format. This lets you specify many different styles. Here are some of the more common ones, which show the same time as in the previous example:
6:00 pm lt Assuming today is Jan. 10, 2000
2:00 AM, Jan. 10, 2000
Mon Jan 10 18:00:00 2000 LT
Mon Jan 10 18:00:00 PST 2000The uppercase or lowercase “lt” indicates local time (here,
Pacific Standard Time). The third line shows ctime format (plus the “LT”); the fourth
line is the date command
format.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access