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. * $Id: using_I18Nv2_Locale.php,v 1.1 2004/05/03 15:02:17 mike Exp $
  10. */
  11.  
  12. require_once 'I18Nv2.php';
  13.  
  14. $locale &I18Nv2::createLocale('de_AT');
  15.  
  16. echo "Format a currency value of 2000: ",
  17.     $locale->formatCurrency(2000I18Nv2_CURRENCY_INTERNATIONAL)"\n";
  18.  
  19. echo "Format todays date:              ",
  20.     $locale->formatDate(nullI18Nv2_DATETIME_FULL)"\n";
  21.  
  22. echo "Format current time:             ",
  23.     $locale->formatTime(nullI18Nv2_DATETIME_SHORT)"\n";
  24. ?>

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