Frerit / epiclock

Automatically exported from code.google.com/p/epiclock
0 stars 0 forks source link

Rebuild the Click Wheel within the Clock Object #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Within the current release of the project, we have entered placeholders for
offsetting time/date. In essence, during creation of a Clock object, you
could enter that you want to offset the days displayed during a countup
clock by 40. This works fine, as days are merely a semi-static calculated
field, while we use the date object to calculate the time passage.

During the next release, we'll be rebuilding the click wheel within the
clock object to utilize these time offsets. This will work in concerto with
the new timezone/sync functionality.

Original issue reported on code.google.com by gars...@gmail.com on 13 Mar 2008 at 2:08

GoogleCodeExporter commented 9 years ago
The new click wheel has been built into the clock object, and it now obeys 
displacements on all clocks. So, if you 
pass in set('clock',{hours: 5}), the clock will display the current time plus 5 
hours. Additionally, if you pass in 
set('clock',{hours: -5}), the clock will display the current time less 5 hours. 
This goes for minutes and seconds as 
well.

There is no sanity checking on the seconds/minutes/hours displacement, as the 
clock works equally well if you 
pass in: {secs: 3600} as if you were to pass in {hours: 1}.

Original comment by gars...@gmail.com on 15 Mar 2008 at 5:46