Re: Plpgsql function to compute "every other Friday"

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Plpgsql function to compute "every other Friday"
Date: 2011-04-05 01:16:23
Message-ID: 4D9A6D67.9000405@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

generate_series(date '2001-01-05', date '2020-12-31', interval '2 weeks')

will return every payday from jan 5 2001 to the end of 2020 (assuming
the 5th was payday, change the start to jan 12 if that was instead).

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message C. Bensend 2011-04-05 01:26:32 Re: Plpgsql function to compute "every other Friday"
Previous Message Andy Colson 2011-04-05 00:54:53 Re: Plpgsql function to compute "every other Friday"