RE: [PEAR-DEV] Re: [PEAR-CVS] cvs: php4 /pear/Date Calc.php

From: Date: Mon, 20 Aug 2001 21:34:05 +0000
Subject: RE: [PEAR-DEV] Re: [PEAR-CVS] cvs: php4 /pear/Date Calc.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1634@lists.php.net to get a copy of this message
> If you set your locale with setlocale() or otherwise, then > strftime('%B') will return the localized month name. You can use it to > build an array of month names. The day names would work similarly. > > -Andrei Somthing like this function getMonthNames(){ for($i=1;$i<13;$i++){ $months[$i] = strftime('%B', mktime(0, 0, 0, $i, 1, 2001)); } return($months); } what are valid values for the locale setting I tried setlocale(LC_ALL,"bg"); but it didn't work yavor

« previous php.pear.dev (#1634) next »