Time mystery: What was last midnight in seconds?

on mouseup
  -- This script tests getting the seconds at midnite
  -- last night using three methods

  -- First is based on the assumption seconds function
  -- began at midnite in the past, probably wrong assumptin
  -- since docs say "arbitrary seconds in the past"

  put the seconds into tNow
  put tNow- (tNow mod  86400) into tLastMidNiteA

-- the second method assumes that "convert" returns
-- midnite of the beginning of the current day.


  put the short date into tLastMidNiteB
  convert tLastMidNiteB to seconds

  -- Third method uses the current time as a portion of 24 hours
  -- passed since midnite and then subtracts that from now, in seconds
  
  put the time into tNow
  set the itemdelimiter to ":"
  if word 2 of item 2 of tNow = "PM" then put (12+ item 1 of tNow) into item
1 of tNow
  put ((item 1 of tNow*60*60) + (word 1 of item 2 of tNow*60)) into
tSinceMidnite
  put the seconds-tSinceMidnite into tLastMidniteC
  
  
  -- but, we get three different times:
  put tLastMidNiteA & cr& tLastMidNiteB & cr & tLastMidniteC after fld
"returned_data"
    
end mouseUp

We get three different times for midnite and the difference is not trivial

998265600
998222400
998215200

So, when was last midnight, in seconds? Now, what IS interesting is that
method 2 and 3 are exactly two hours apart and Hawaii is two hours off the
international dateline: i.e. zone two on the international time system by
longitude.

Can we have some clues?

TIA

Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to