This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Culture culture = CultureInfo.CurrentCulture ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_once 'I18Nv2.php'; | |
| $locale = &I18Nv2::createLocale('en_US'); | |
| echo "Format a currency value of 2000: ", | |
| $locale->formatCurrency(2000, I18Nv2_CURRENCY_INTERNATIONAL), "\n"; | |
| echo "Format todays date: ", | |
| $locale->formatDate(null, I18Nv2_DATETIME_FULL), "\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| string myDate = DateTime.Now.ToString(ci); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CultureInfo ci = CultureInfo.CurrentCulture; | |
| string money = 120.ToString(“c”,ci); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import locale | |
| import datetime | |
| locale.setlocale( locale.LC_ALL, 'en_US' ) | |
| // va afficher : '$188518982.18' | |
| locale.currency( 188518982.18 ) | |
| // va afficher '1,255,000' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $number = 1234.56; | |
| // Notation anglaise (par défaut) | |
| $english_format_number = number_format($number); | |
| // 1,235 Notation française | |
| $nombre_format_francais = number_format($number, 2, ',', ' '); | |
| // 1 234,56 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; CharSet=UTF8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; CharSet=UTF8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="alternate" href="http://www.hopwork.fr" hreflang="fr-fr"/> | |
| <link rel="alternate" href="http://fr.hopwork.ca" hreflang="fr-ca"/> | |
| <link rel="alternate" href="http://fr.hopwork.com" hreflang="fr"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: analytics | |
| sudo: true | |
| vars_files: | |
| - ../target/classes/version.yml | |
| tasks: | |
| - name: Ensure hopwork log folder exist | |
| file: path=/var/log/hopwork/analytics/ state=directory group=www-data owner=www-data | |
| - name: Ensure hopwork folder exist |