Date_HumanDiff
[ class tree: Date_HumanDiff ] [ index: Date_HumanDiff ] [ all elements ]

Source for file translation.php

Documentation is available at translation.php

  1. <?php
  2. require_once 'Date/HumanDiff.php';
  3.  
  4. $dh = new Date_HumanDiff();
  5. $dh->setLocale('de');
  6. //alternatively, you may pass in a locale:
  7. // $dh->setLocale('de_AT');//falls back to the "de" language
  8.  
  9. echo $dh->get(time(- 60 * 5"\n"//shows "vor 5 Minuten"
  10. ?>

Documentation generated on Mon, 11 Mar 2019 15:56:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.