Translate date("d F Y (H:i) function php

后端 未结 3 1661
臣服心动
臣服心动 2021-02-04 09:07

I\'m brazilian and there\'s a wordpress plugin that uses

\" . date(\"d F Y (H:i)\",$date) . \"

Output: 16 January 2013 (00:54)

3条回答
  •  难免孤独
    2021-02-04 10:01

    For the french language I use this

    setlocale(LC_ALL, 'fra');
    
    echo strftime("%A %d %B %Y",time()); 
    

    For in portuguese

    setlocale(LC_ALL, 'ptg');  //
    
    echo strftime("%A %d %B %Y",time());
    

    see Language Strings Country/Region Strings.

提交回复
热议问题