in reply to time & localtime() function Q?
$secs: seconds($secs,$mins,$hrs,$dom,$moy,$yrs,$dow,$juldays,$dst) = localtime $reft +ime;
The function time() returns the number of seconds since Jan 1, 1970.
BTW, the $refdate you gave (102049345) is for Monday, March 26, 1973.
$secs: 25
$mins: 2
$hrs: 21
$dom: 26
$moy: 2
$yrs: 73
$dow: 1
$juldays: 84
$dst: 0
If you start out with a reference date like the value returned by time (your example: 102049345) and you say:
$wklater can then be passed to localtime and you can build the text string you want:$wklater = $reftime + 60*60*24*6
Hint: Build a few array constants to return the string parts ($dow[1]="Monday", $moy[11]="December").($secs,$mins,$hrs,$dom,$moy,$yrs,$dow,$juldays,$dst) = localtime $wkla +ter;
--Jim
|
|---|