note 80540 added to function.setlocale

From: Date: Mon, 21 Jan 2008 13:04:34 +0000
Subject: note 80540 added to function.setlocale
Groups: php.notes 
Request: Send a blank email to php-notes+get-135287@lists.php.net to get a copy of this message
Posting this in the hope it might be useful to others, as I could find very little info anywhere. If you want to use a Welsh locale and have the suitable language support installed, you pass 'cym' (abbreviated form of Cymraeg) to setlocale: <?php setlocale(LC_TIME, 'cym'); $welsh= gmstrftime("%A, %B %Y - %H:%M",time()); echo $welsh; ?> The above certainly applies to Windows systems, but should also apply to Unix if the required support is installed. Cheers, Bryn. ---- Server IP: 194.145.210.3 Probable Submitter: 212.159.119.251 ---- Manual Page -- http://www.php.net/manual/en/function.setlocale.php Edit -- https://master.php.net/note/edit/80540 Del: integrated -- https://master.php.net/note/delete/80540/integrated Del: useless -- https://master.php.net/note/delete/80540/useless Del: bad code -- https://master.php.net/note/delete/80540/bad+code Del: spam -- https://master.php.net/note/delete/80540/spam Del: non-english -- https://master.php.net/note/delete/80540/non-english Del: in docs -- https://master.php.net/note/delete/80540/in+docs Del: other reasons-- https://master.php.net/note/delete/80540 Reject -- https://master.php.net/note/reject/80540 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135287) next »