Welcome, Guest
Please Login or Register.    Lost Password?

Correct weeknumber problem
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Correct weeknumber problem
#5638
Correct weeknumber problem 6 Years, 8 Months ago  
Sounds like very simple task.

I have a simplest skin with today data in window. Any month calendar shows correct weeknumber for January 1 - January 5 (week number 1). Current time format %W or %U gives first number of week 00. Is it possible to get week number 1 for January 1 of any year?

My simplest test skin enclosed (only 2 KB ).
File Attachment:
File Name: WeekNumberTest.r2skin
File Size: 1927
Alexander
Expert Boarder
Posts: 151
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Ukraine
Last Edit: 2008/01/18 13:00 By Alexander.
The administrator has disabled public write access.
 
#5658
Re:Correct weeknumber problem 6 Years, 8 Months ago  
I'm not sure why it works like that. The week number is calculated by the standard OS function so I would imagine that at least one of the format commands would return the ISO standardized week number.
Rainy
Moderator
Posts: 5960
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop