pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Andreas Joseph Krogh <andreak@officenet.no>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problems with to_char(created, 'WW')
Date: Thu, 24 Oct 2002 13:19:10 +0200
Message-ID: <3DB7D72E.1020700@klaster.net> (raw)
References: <200210241251.35365.andreak@officenet.no>

Uz.ytkownik Andreas Joseph Krogh napisa?:
> 
> Now - my question is, why is monday 21. in week 42, but tuesday 22. in week 
> 43?

Read the documentation - 4.7. Data Type Formatting Functions
"WW - week number of year (1-53) where first week start on the first day 
of the year"

Year 2002 started on Tuesday, so monday is still week 42, but tuesday is 
week 43.

Tomasz Myrta




view thread (3+ messages)

Message-ID: <3DB7D72E.1020700@klaster.net>
Permalink:  ../3DB7D72E.1020700@klaster.net/
Also on:    postgresql.org/message-id/3DB7D72E.1020700@klaster.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net, andreak@officenet.no
  Subject: Re: Problems with to_char(created, 'WW')
  In-Reply-To: <3DB7D72E.1020700@klaster.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox