Skip to content

Instantly share code, notes, and snippets.

@burakerdem
Forked from o/gist:2116905
Created March 19, 2012 16:27
Show Gist options
  • Save burakerdem/2118088 to your computer and use it in GitHub Desktop.
Save burakerdem/2118088 to your computer and use it in GitHub Desktop.
PHP: Localized date time example
<?php
// Check your supported locales with $ locale -a
setlocale(LC_TIME, 'tr_TR.UTF-8');
echo strftime("%d %B %Y %A");
// 19 Mart 2012 Pazartesi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment