If the -base flag is specified, the next argument should contain an integer clock value. Only the date in this value is used, not the time. This is useful for determining the time on a specific day or doing other date-relative conversions.
The dateString consists of zero or more specifications of the following form:
Daylight savings time correction is applied only when the relative time is specified in units of days or more, ie, days, weeks, fortnights, months or years. This means that when crossing the daylight savings time boundary, different results will be given for clock scan "1 day" and clock scan "24 hours":
% clock scan "1 day" -base [clock scan 1999-10-31] 941443200 % clock scan "24 hours" -base [clock scan 1999-10-31] 941439600
Copyright © 1992-1995 Karl Lehenbauer and Mark Diekhans. Copyright © 1995-1997 Sun Microsystems, Inc. Copyright © 1998-1999 Scriptics Corporation Copyright © 1995-1997 Roger E. Critchlow Jr.