week->date

Name

week->date -- Compute the date for a given week and day of week.

Type: function

Synopsis

week->date( week day-of-week, date);

Arguments

week

An instance of <fixnum>

day-of-week

An instance of <fixnum>

Return Values

date

An instance of <date>

Description

This function returns the date corresponding to the given day of the week.

The following example shows how one might use date->week and week->date to find the Sunday before a given date.

(define td (ymd->date 1997 9 13))

(date->week td) 104182 6

(week->date 104182 0) 1997.09.07