Re: mkdate() checkdate() etc



"Krustov" wrote:

> The first user to look at the poll after the end date/time will trigger
> its closer checking routine rather using a cron job .
>
> - how do I create the 1-28 days end date/time

$endTime = time() + $days * 24 * 3600; // $days = 1-28

> - how do I check it against the creation date time

if (time() > $endTime) die("This poll has ended.");

> If a 20 day poll is created on 25th Dec 2005 the end date/time will of
> course need to roll over into 2006 .

Indeed.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

.



Relevant Pages

  • Re: Questions on Clark hardball pistol
    ... I questioned that routine and asked Jim Clark about it himself. ... to hold the trigger down as the slide is released you also have to hold ... As for the trigger, could it possibly be the trigger stirrup recess ...
    (rec.guns)
  • Re: Addin Close problem
    ... Nothing obvious in the code you show, but obviously this routine doesn't ... events you have that might trigger the routine. ... > Sub RemoveBofQ_UtilitiesMenu ... Dim Row As Integer, Caption As String ...
    (microsoft.public.excel.programming)
  • Re: [PATCH] [ISDN] Fix random hard freeze with AVM c4 card
    ... in turn calls the offending mq_enqueue routine that triggered the ... incosistent capilib_msgidqueue list, that trigger messages like: ...
    (Linux-Kernel)
  • Re: Custom Validator
    ... AutoPostBack set on any of the TextBoxes, ... trigger my button event which was pushed in the first place. ... anything which this routine could have done to "clobber the button event". ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Run an Add-in
    ... The key phrase there is "cause...to appear". ... The routine can be in your add-in, ... still need something in the workbook to trigger the event that causes ... -- but they will depend on the nature of the routine. ...
    (microsoft.public.excel.programming)