This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

week numbers in tcl

Old posts that have not been replied to for several years.
Locked
c
cez
Voice
Posts: 10
Joined: Mon May 26, 2003 5:19 pm

week numbers in tcl

Post by cez »

Hi,
I have this scripts which logs some stuff into a database. One thing it logs is current week number but I'm a little confused about the clock format options for weeks. I know that Sweden uses ISO-8601 (%V) but what about the rest of the world? US for example. Thx for your time.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

%U or %W

But why are you storing the week number? Why not store the timestamp? (clock seconds)
Have you ever read "The Manual"?
c
cez
Voice
Posts: 10
Joined: Mon May 26, 2003 5:19 pm

Post by cez »

Well since I want to retrieve the results per week and I don't need it more precise than that it seemed most logical to me to just save the week. But I'm about to change me mind about that week numbers seems to be messed about with diffrent standards.
Locked