phpbar.de logo

Mailinglisten-Archive

[php] Kalenderwoche berechnen ?

[php] Kalenderwoche berechnen ?

Hartmut Holzgraefe hartmut_(at)_six.de
Fri, 12 May 2000 12:55:14 +0200


Stefan wrote:
> gibt es in php eine FUnktion die die aktuelle Kalenderwoche berechnet ?
 

strftime("%V",$timestamp)

       
	%U - week number of the current year as a decimal number,
	starting with the first Sunday as the first day of the first
	week

        %V - The  ISO 8601:1988 week number of the current year as a
        decimal number, range 01 to 53, where week 1 is the first
        week that has at least 4 days in the current year, and with
        Monday as the first day of the week.

        %W - week number of the current year as a decimal number,
	starting with the first Monday as the first day of the first
	week

--
Hartmut Holzgraefe         hartmut_(at)_six.de           http://www.six.de


php::bar PHP Wiki   -   Listenarchive