Skip to content

Instantly share code, notes, and snippets.

@o
Created March 19, 2012 15:49
Show Gist options
  • Save o/2116905 to your computer and use it in GitHub Desktop.
Save o/2116905 to your computer and use it in GitHub Desktop.
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