
Dates | 809
CVS
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
RFC 822 and RFC 1123
RFCs 822 and 1123 define a precise time format:
[DDD ,] DD MMM YYYY HH:MM[:SS] ZZZ
These are the terms in the format:
DDD
A three-letter day of the week.
DD
A two-digit date of the month.
MMM
A three-letter month.
YYYY
The year (it must be a four-digit year).
HH
Hours.
MM
Minutes.
SS
Seconds.
ZZZ
The time zone (can be the text abbreviation, a military time zone, or an offset
from UTC in hours and minutes).
Legal Date Keywords
CVS also allows short English phrases such as “last Wednesday” and “a month
ago” to be used in place of actual dates. Case is not significant, and CVS can
understand plurals. These are the keywords it understands:
Month names
January, February, March, April, May, June, July, August, September,
October, November, and December.
Month abbreviations
Jan, Feb, Mar, Apr, Jun, Jul, Aug, Sep, Sept, Oct, Nov, and Dec.
Days of the week
Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday.
Day abbreviations
Sun, Mon, Tue, Tues, Wed, Wednes, Thu, Thur, Thurs, Fri, and Sat.
Units of time
year, month, fortnight, week, day, hour, minute, min, second, and sec.
Relative times
tomorrow, yesterday, today, and now.
Meridian qualifiers
am, pm, a.m., and p.m.