lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



I am sorry Javier, i didnt follow you.

Are you proposing to divide date-A on 3, and less 4 to date-b ?

in my case, range of dates and independant to range of times.

i do not have to know is NOW is between to datetimes.

thanks 

Diego.

> Date: Thu, 7 May 2009 11:23:39 -0500
> Subject: Re: how to compare 2 dates - NOW WITH TIME
> From: javier@guerrag.com
> To: lua@bazar2.conectiva.com.br
>
> On Thu, May 7, 2009 at 10:39 AM, Diego - Red Baires
> <diego_redbaires@hotmail.com> wrote:
>
>> (is today between date-A and date-B, if so, is now between 3pm and 4pm?)
>
> much better and easier is:
>
> is now betwenn date-A/3pm and dateB-4pm?
>
> for this, convert the full date/time to a timestamp and compare 'now' with those
>
> --
> Javier


Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!