On 10/27/06 5:52 AM, "Mark Powell" <[EMAIL PROTECTED]> wrote:

> I have a user-specified date.  I want to convert it to seconds and
> factor in 86400 to establish the range of seconds for that date, so that
> I can compare a file's creation date to determine whether that file was
> created on that specified day.  The problem is I am not sure what is
> used as the starting point for a date's seconds counter.  At 6:42 this
> morning, I ran this:
> 
>   put the short date into theDate
>   convert theDate to seconds
>   put ((the seconds - theDate) / 3600)
> 
> and got 4.710556, which suggests that a date starts at 1:00 AM and not
> midnight.  Is this accurate?  And more importantly, is this the way the
> computation would be handled on any client machine anywhere?
> 
Try this.

put the short date into theDate
convert theDate to dateItems
put dateItems

I get 2006,10,27,2,0,0,6
which means 2:00:00 AM on Saturday, Oct 27, 2006


Jim Ault
Las Vegas



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to