#2896 NORM Trial-3: sugar.date API review

Zarro Boogs per Child bugtracker at laptop.org
Mon Aug 27 12:20:13 EDT 2007


#2896: sugar.date API review
---------------------+------------------------------------------------------
  Reporter:  marco   |       Owner:  marco     
      Type:  defect  |      Status:  new       
  Priority:  normal  |   Milestone:  Trial-3   
 Component:  sugar   |     Version:            
Resolution:          |    Keywords:  api-review
  Verified:  0       |  
---------------------+------------------------------------------------------
Changes (by Eben):

  * owner:  Eben => marco
  * component:  interface-design => sugar

Comment:

 Hmm, it actually seems that timezones aren't really needed at all for this
 API, right?  We're explicitly trying to represent a relative amount of
 time.  POSIX time is an absolute number, no matter what time zone we're
 in, right?  As such, we should simply calculate the number of minutes,
 hours, months, years, etc. that have passed since that time, regardless of
 time zone.  If I made something 6 minutes ago, I made it six minutes ago,
 regardless of whether or not I have since driven across a state line and
 into a new timezone.

 The only case where you do actually care about the timezone is when you
 want an absolute time, such as "12:20 August 27, 2007."  I guess we still
 want to show something like that in the detail view, but it shouldn't
 really be a necessary part of the relative date API.

-- 
Ticket URL: <http://dev.laptop.org/ticket/2896#comment:8>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list