Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,657 Members 43,546 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Custom Week Number

Tip us?
 
kutukia
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 24
Join Date: Jan 2012
Default [Q] Custom Week Number

As the title suggests is it possible for Zooper Widget to display customized week numbers?

I'm trying to migrate my calendar widgets from simple calendar widget to zooper and in simple calendar there was an option that allows for arbitrary shifting of week numbers. I'm trying to replicate that in Zooper widget but I haven't found any appropriate way of doing so. If any kind soul can point me in the right direction that would be greatly appreciated.
 
kwerdenker
Old
#2  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,201
Posts: 1,379
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by kutukia View Post
As the title suggests is it possible for Zooper Widget to display customized week numbers?

I'm trying to migrate my calendar widgets from simple calendar widget to zooper and in simple calendar there was an option that allows for arbitrary shifting of week numbers. I'm trying to replicate that in Zooper widget but I haven't found any appropriate way of doing so. If any kind soul can point me in the right direction that would be greatly appreciated.
I'm not sure I understand what you are trying to do. Could you please explain what you mean with "arbitrary shifting of week numbers"?

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
 
kutukia
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 24
Join Date: Jan 2012
Quote:
Originally Posted by kwerdenker View Post
I'm not sure I understand what you are trying to do. Could you please explain what you mean with "arbitrary shifting of week numbers"?
Well for example the week of the year option displayed in Zooper widget currently would be 3, and I would like to change it so that Zooper displays it as 1.

Hope that clarifies.
 
kwerdenker
Old
#4  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,201
Posts: 1,379
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by kutukia View Post
Well for example the week of the year option displayed in Zooper widget currently would be 3, and I would like to change it so that Zooper displays it as 1.

Hope that clarifies.
So you want the current week always to be 1 instead of 4,5,etc. and the following weeks to be 2,3,4, etc?

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
 
kutukia
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 24
Join Date: Jan 2012
Quote:
Originally Posted by kwerdenker View Post
So you want the current week always to be 1 instead of 4,5,etc. and the following weeks to be 2,3,4, etc?
Yep, that is correct.

Is there anyway to achieve that?
 
kwerdenker
Old
#6  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,201
Posts: 1,379
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by kutukia View Post
Yep, that is correct.

Is there anyway to achieve that?
Then yes, I think it's possible. Instead of writing #C0Sw# to get the week in year of an event you write $(#C0Sw#-(#Dw#-1))$. This should calculate the weeks value based on the current week.

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
The Following User Says Thank You to kwerdenker For This Useful Post: [ Click to Expand ]
 
kutukia
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 24
Join Date: Jan 2012
Quote:
Originally Posted by kwerdenker View Post
Then yes, I think it's possible. Instead of writing #C0Sw# to get the week in year of an event you write $(#C0Sw#-(#Dw#-1))$. This should calculate the weeks value based on the current week.
That works! Thanks alot!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Jair Player with a Major Update–Here’s What’s New!

Back in May, we talked a bit aboutJair Player, a nice looking music … more

Paid Android App Developers Will Soon Have to Provide Physical Address

Google has now changed its policies regarding paid app developers. … more

Windows Developers Rejoice! Dev Program’s $99 Yearly Fee is No More!

Microsoft rule in the mobile market, much like the giant dinosaurs … more

Add the Xperia Z2 Lock Screen to Your Favorite KitKat ROM

Almost every OEM adds its own unique flair to their stock firmwares. While some of … more