• Welcome to TodayPlus Boards v2.
 

News:

No news is good news.

Main Menu

Counting

Started by dgmele, December 30, 2004, 11:12:10 PM

Previous topic - Next topic

dgmele

Is there a way of having the week number count from Sunday instead of Monday? Presently, Sunday, January 2, 2005, is counted as week 53. Week 1 does not start its count until Monday, January 3, 2005.

Also, it would be nice if the countdown feature could be added to the Appointments page. I had this feature in the previous skin I had been using before the spectacular Hammerskin came along.

Motormuis

This is because week 1 starts at januari 3 and not on januari 2. Januari 2 is still week 53.
Pocket PC: Compaq iPAQ 3950 - WM 2003
Add-On: SD 256Mb - Leadtek GPS Mouse - Brodin CarKit Holder - TomTom3 - TodayPlus 0.11.0 with HammerSkin

dgmele

If you consider Monday the start day, this is so. However, if you consider Sunday the start day, this is not so. Both methods are possible. I prefer to use Sunday as the start day and would like to alter the skin accordingly. Does anyone know if there is a simple way to do this?

Motormuis

It's not me that considers that a week starts on a monday, but this is regarding ISO8601-standards.
Quote" In commercial and industrial applications (delivery times, production plans, etc.), especially in Europe, it is often required to refer to a week of a year. Week 01 of a year is per definition the first week that has the Thursday in this year, which is equivalent to the week that contains the fourth day of January. In other words, the first week of a new year is the week that has the majority of its days in the new year. Week 01 might also contain days from the previous year and the week before week 01 of a year is the last week (52 or 53) of the previous year even if it contains days from the new year. A week starts with Monday (day 1) and ends with Sunday (day 7). "
I hope this explains it?
Pocket PC: Compaq iPAQ 3950 - WM 2003
Add-On: SD 256Mb - Leadtek GPS Mouse - Brodin CarKit Holder - TomTom3 - TodayPlus 0.11.0 with HammerSkin

dgmele

Forgive me. I did not mean "you" personally. I accept the standard you quote. However, I have seen different date programs do things differently. The Calendar Program on the PocketPC, for example, allows the user to begin the week with Sunday (as does the TodayPlus program). If you change the Calendar Program setting on the Options screen to "Show week numbers," the first week is shown as beginning on Sunday. This may not be entirely accurate according the quoted standard, but it is what I would like to do. If you know a simple way to accomplish this, I would appreciate your help. Thanks.

uk_skinner

dgmele:

 Try these codes:

   if,var,var33,,<,38354
         //Jahr 2004
         addvar,var33,-37978
   else
      if,var,var33,,<,38718
         //Jahr 2005
         addvar,var33,-38347
      else
         if,var,var33,,<,39082
            //Jahr 2006
            addvar,var33,-38711
         else
            //Jahr 2007
            addvar,var33,-39075
         endif
      endif
   endif


The week start at Sun.  

02-Jan-2005(Sun): 1st week
31-Dec-2005(Sat): 52th week
01-Jan-2007(Sun): 1st week
31-Dec-2006(Sun): 1st week
01-Jan-2007(Mon): 1st week

dgmele

Thanks once again. Works perfectly.

I don't know whether you read the second part of my original post about the possibility of implementing the countdown feature in the Appointments section. Would this be a monumental task?

uk_skinner

Quote from: dgmeleThanks once again. Works perfectly.

I don't know whether you read the second part of my original post about the possibility of implementing the countdown feature in the Appointments section. Would this be a monumental task?

Sorry, I missed that part of your post.. :oops:

If you are looking something like this.  Just use the codes here.  Since there are some other symbols in the events, you probably need to adjust the position to fit your need.  The countdown codes are in red.

   options,apptformat,0,11,11,%tab,35%%countdown, Day,H 'hrs',m 'min'%%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,tr%%recurrenceicon,-10,1,recurrence.png,tr%%remindericon,-10,1,reminder.png,tr%%changefont,tahoma,11,%%image,0,2,small_arrow_right.png,tr%%tab,7%%starttime,HH:mm%%tab,76%%subject%%regularfont%

   options,apptallday,0,11,11,%tab,35%%countdown, Day%%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,tr%%recurrenceicon,-10,1,recurrence.png,tr%%remindericon,-10,1,reminder.png,tr%%changefont,tahoma,11,%%textcolor,0_128_0%%image,0,2,small_arrow_right.png,tr%%tab,7%All Day%tab,76%%subject%%regularfont%%resettextcolor%

dgmele

I'll try to incorporate. Will let you know if I have any success.

By the way, is the daylength function not functional? I get a minus reading for "length" on the Weather page.

uk_skinner

Quote from: dgmele
By the way, is the daylength function not functional? I get a minus reading for "length" on the Weather page.

Indeed, at some location, you will get minus day length.  No one but srs can fix that.. :oops:

dgmele

How about creating a calculation that simply substracts the sunrise time from the sunset time? Would that work? I'd do it if I knew how but am very limited in what I am able to accomplish.

uk_skinner

Quote from: dgmeleHow about creating a calculation that simply substracts the sunrise time from the sunset time? Would that work? I'd do it if I knew how but am very limited in what I am able to accomplish.

As far as I know, the rais/set time CAN NOT BE assigned to the var.  So can not do the calculation..  Sorry...

dgmele

Oh, well. Can't have everything. I'll probably just replace length with elevation or something like that.

Sorry to keep bothering you, but is there a way of making the number of the present day a different color, red for example? It's nice that it's bold, but my eyesight requires that I look very closely. A different color would help greatly.

uk_skinner

Quote from: dgmeleOh, well. Can't have everything. I'll probably just replace length with elevation or something like that.

Sorry to keep bothering you, but is there a way of making the number of the present day a different color, red for example? It's nice that it's bold, but my eyesight requires that I look very closely. A different color would help greatly.


Use "color,font,255_0_0" before your date/time, but remember change back to "color,font,-1_4,-1" (Today Screen Text Color", otherwise you have something in the red...


   changefont,tahoma,23,i

      color,font,255_0_0

   time,4,0,-1,5,ls,"dddd",

   changefont,tahoma,13,b

   time,4,22,-1,5,l,"d.MMMM yyyy",
   time,4,35,-1,4,l
        color,font,-1_4_-1


   changefont,tahoma,12,

Wichtel

Quote from: dgmeleI'll try to incorporate. Will let you know if I have any success.

By the way, is the daylength function not functional? I get a minus reading for "length" on the Weather page.

For the "minus" try the following: If you have an City e.G. 49.899,-97.130 make sure that you type only 5 letters in the Registry. In the example -97.130 is -97.13
On my Device this works without an minus
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign