• [^] # Re: Date

    Posté par (site web personnel) . En réponse au journal 8 mars : International Women's Day. Évalué à 3.

    Les dates au format américain

    Quand on cite un texte anglais ce n'est pas non plus complètement aberrant de donner la date en anglais. Sinon en français cette date devient 14.11.1913.

    Pour faire la conversion:

    date_from='11/14/13'
    locale_from=en_UK
    locale_to=fr_FR
    env LANG=$locale_to.UTF-8 date -j -f %F `env LANG=$locale_from.UTF-8 date -j -f %x $date_from +%F` +%x
    
    

    Qui répond bien entendu: 14.11.2013.