Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

How to specify date for what's new

Quote Reply
How to specify date for what's new
Hi there,

in nph-build.cgi the subroutine build_update_newpop has this code:
$new_date = $LINKDB->get_date (time - (86400 * $LINKS{build_new_cutoff}));

Is there anyway to override time so that I can specify my date ranges.
example. today is June 9, 2001 but I want the new date to be evaluated as if it were June 1, 2001. This is an ongoing thing, so I don't want to have to go into the script to change it each time. I can handle passing in my date paramater, I just can get the:

$LINKDB->get_date (time - (86400 * $LINKS{build_new_cutoff})); to evaluate it properly.

I've tried:
$usethisdate="2001-06-01";
$LINKDB->get_date ($usethisdate - (86400 * $LINKS{build_new_cutoff})); to evaluate it properly.

Hope it's clear what I'm trying to accomplish, I'm not sure what else to try.

Anyone have any ideas?

thanks.


Subject Author Views Date
Thread How to specify date for what's new klangan 2367 Jun 9, 2001, 10:39 AM
Thread Re: How to specify date for what's new
Stealth 2331 Jun 9, 2001, 10:47 AM
Thread Re: How to specify date for what's new
klangan 2322 Jun 9, 2001, 11:27 AM
Post Re: How to specify date for what's new
Alex 2333 Jun 9, 2001, 12:32 PM