Does a day start at 1:00 AM everwhere?

Jim Ault JimAultWins at yahoo.com
Fri Oct 27 09:49:18 CDT 2006


On 10/27/06 5:52 AM, "Mark Powell" <mark_powell at symantec.com> 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






More information about the use-livecode mailing list