date->time

Name

date->time -- Compute the time on a particular day

Type: function

Synopsis

date->time( date secs, time);

Arguments

date

An instance of <date>

secs

An instance of <fixnum>

Return Values

time

An instance of <time>

Description

Returns the time corresponding to the given number of seconds, secs, since midnight GMT on the given date.

Because of the representation of time objects (from the syscalls module, btw), date must refer to January 1, 1970, or later.