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

Source for file using_I18Nv2_Locale.php

Documentation is available at using_I18Nv2_Locale.php

  1. <?php
  2.  
  3. /**
  4. * Using I18Nv2_Locale
  5. * ===================
  6. *
  7. * I18Nv2_Locale is a formatter object that provides functionality to format
  8. * dates, times, numbers and currencies in locale dependent conventions.
  9. * 
  10. * $Id: using_I18Nv2_Locale.php,v 1.1 2004/05/03 15:02:17 mike Exp $
  11. */
  12.  
  13. require_once 'I18Nv2.php';
  14.  
  15. $locale = &I18Nv2::createLocale('de_AT');
  16.  
  17. echo "Format a currency value of 2000: ",
  18.     $locale->formatCurrency(2000, I18Nv2_CURRENCY_INTERNATIONAL), "\n";
  19.  
  20. echo "Format todays date:              ",
  21.     $locale->formatDate(null, I18Nv2_DATETIME_FULL), "\n";
  22.  
  23. echo "Format current time:             ",
  24.     $locale->formatTime(null, I18Nv2_DATETIME_SHORT), "\n";
  25. ?>

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