Java Code Examples for java.util.Locale.FRANCE

The following are Jave code examples for showing how to use FRANCE of the java.util.Locale class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: afp-api-client   File: AFPDataGrabber.java   View Source Code Vote up 6 votes
public AFPDataGrabber(LangEnum lang, Map<String, String> authenticationProperties, Logger logger, File baseDir,
		AFPDataGrabberCache cache, Proxy proxy) {
	super();
	aam = new AFPAuthenticationManager(authenticationProperties, proxy, logger);
	this.logger = logger;
	this.baseDir = baseDir;
	this.proxy = proxy;
	this.cache = cache;
	lng = lang;
	directoryDF = new SimpleDateFormat("yyyy/MM/dd/", Locale.FRANCE);
	directoryDF.setTimeZone(TimeZone.getTimeZone("Europe/Paris"));
	fileDF = new SimpleDateFormat("HHmmssSSS", Locale.FRANCE);
	fileDF.setTimeZone(TimeZone.getTimeZone("Europe/Paris"));
	dateDF = new SimpleDateFormat("yyyyMMdd", Locale.FRANCE);
	dateDF.setTimeZone(TimeZone.getTimeZone("Europe/Paris"));
}
 
Example 2
Project: jdk8u-jdk   File: TCKLocalizedPrinterParser.java   View Source Code Vote up 6 votes
@DataProvider(name="date")
Object[][] data_date() {
    return new Object[][] {
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN},

            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.JAPAN},

            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.JAPAN},

            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.JAPAN},
    };
}
 
Example 3
Project: jdk8u-jdk   File: TCKLocalizedPrinterParser.java   View Source Code Vote up 6 votes
@DataProvider(name="time")
    Object[][] data_time() {
        return new Object[][] {
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK},
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US},
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE},
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN},

                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.UK},
                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.US},
                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.FRANCE},
                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.JAPAN},

                // these localized patterns include "z" which isn't available from LocalTime
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.UK},
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.US},
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.FRANCE},
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.JAPAN},
//
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.UK},
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.US},
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.FRANCE},
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.JAPAN},
        };
    }
 
Example 4
Project: openjdk-jdk10   File: TCKLocalizedPrinterParser.java   View Source Code Vote up 6 votes
@DataProvider(name="date")
Object[][] data_date() {
    return new Object[][] {
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN},

            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.JAPAN},

            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.JAPAN},

            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.UK},
            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.US},
            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.FRANCE},
            {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.JAPAN},
    };
}
 
Example 5
Project: openjdk-jdk10   File: TCKLocalizedPrinterParser.java   View Source Code Vote up 6 votes
@DataProvider(name="time")
    Object[][] data_time() {
        return new Object[][] {
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK},
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US},
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE},
                {LocalTime.of(11, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN},

                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.UK},
                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.US},
                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.FRANCE},
                {LocalTime.of(11, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.JAPAN},

                // these localized patterns include "z" which isn't available from LocalTime
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.UK},
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.US},
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.FRANCE},
//                {LocalTime.of(11, 30), FormatStyle.LONG, DateFormat.LONG, Locale.JAPAN},
//
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.UK},
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.US},
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.FRANCE},
//                {LocalTime.of(11, 30), FormatStyle.FULL, DateFormat.FULL, Locale.JAPAN},
        };
    }
 
Example 6
Project: Android-Allocine-Api   File: Horaires.java   View Source Code Vote up 6 votes
public boolean isMoreThanToday() {
        try {
            String dateFormatted = getDate();

            Date now = new Date();
            now.setHours(0);
            now.setSeconds(0);
            now.setMinutes(0);

            SimpleDateFormat formater = new SimpleDateFormat("E dd MMMMM yyyy", Locale.FRANCE);
            Date date = formater.parse(dateFormatted);

            date.setHours(13);

            return date.equals(now) || date.after(now);
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
}
 
Example 7
Project: MonitorYourLAN   File: DataStorage.java   View Source Code Vote up 5 votes
public void setLastDate(String lastDate) 
{
	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-DD hh:mm:ss", Locale.FRANCE);
	
	try 
	{
		this.lastDate = dateFormat.parse(lastDate);
	} 
	catch (ParseException e) 
	{	
		e.printStackTrace();
	}
}
 
Example 8
Project: otter-G   File: ObjectProfiler.java   View Source Code Vote up 5 votes
private static boolean isSharedFlyweight(Object obj) {
    if (obj == null) {
        return true;
    }
    if (obj == Boolean.TRUE || obj == Boolean.FALSE) {
        return true;
    }
    if (/* obj == Locale.ROOT || *//* Java 6 */
    obj == Locale.ENGLISH || obj == Locale.FRENCH || obj == Locale.GERMAN || obj == Locale.ITALIAN
            || obj == Locale.JAPANESE || obj == Locale.KOREAN || obj == Locale.CHINESE
            || obj == Locale.SIMPLIFIED_CHINESE || obj == Locale.TRADITIONAL_CHINESE || obj == Locale.FRANCE
            || obj == Locale.GERMANY || obj == Locale.ITALY || obj == Locale.JAPAN || obj == Locale.KOREA
            || obj == Locale.CHINA || obj == Locale.PRC || obj == Locale.TAIWAN || obj == Locale.UK
            || obj == Locale.US || obj == Locale.CANADA || obj == Locale.CANADA_FRENCH) {
        return true;
    }
    if (obj == Collections.EMPTY_SET || obj == Collections.EMPTY_LIST || obj == Collections.EMPTY_MAP) {
        return true;
    }
    if (obj == BigInteger.ZERO || obj == BigInteger.ONE) {
        return true;
    }
    if (obj == System.in || obj == System.out || obj == System.err) {
        return true;
    }
    if (obj == String.CASE_INSENSITIVE_ORDER) {
        return true;
    }
    if (obj == JarFile.MANIFEST_NAME) {
        return true;
    }
    return false;
}
 
Example 9
Project: IKB4Stream   File: WeatherProducerConnector.java   View Source Code Vote up 5 votes
/**
 * Check a RSS flow from an URL
 *
 * @param dataProducer {@link IDataProducer} contains the data queue
 * @see WeatherProducerConnector#source
 * @see WeatherProducerConnector#METRICS_LOGGER
 */
@Override
public void load(IDataProducer dataProducer) {
    Objects.requireNonNull(dataProducer);
    while (!Thread.currentThread().isInterrupted()) {
        try {
            SyndFeedInput input = new SyndFeedInput(false, Locale.FRANCE);
            XmlReader reader = new XmlReader(url);
            SyndFeed feed = input.build(reader);
            long start = System.currentTimeMillis();
            feed.getEntries().forEach(entry -> {
                Date date = entry.getPublishedDate();
                String description = entry.getDescription().getValue();
                GeoRSSModule module = GeoRSSUtils.getGeoRSS(entry);
                if (date == null) {
                    date = Date.from(Instant.now());
                }
                if (description == null) {
                    description = "no description";
                }
                if (module != null && module.getPosition() != null) {
                    LatLong latLong = new LatLong(module.getPosition().getLatitude(), module.getPosition().getLongitude());
                    Event event = new Event(latLong, date, date, description, source);
                    dataProducer.push(event);
                    long end = System.currentTimeMillis();
                    long result = end - start;
                    METRICS_LOGGER.log("time_process_" + this.source, result);
                    LOGGER.info("Event " + event + " has been pushed");
                }
            });
        } catch (IOException | FeedException e) {
            LOGGER.error(e.getMessage());
            return;
        }
    }
}
 
Example 10
Project: openjdk-jdk10   File: TestNarrowMonthNamesAndDayNames.java   View Source Code Vote up 5 votes
/**
 * Locale en_US, de_DE, fr_FR, no_NO will have different Narrow and
 * Narrow_Standalone Day Names for COMPAT Provider.
 */
@DataProvider(name = "DayNarrows")
public Object[][] dayNameData() {
    return new Object[][]{
        {Locale.US, new String[]{"M", "T", "W", "T", "F", "S", "S"}},
        {Locale.GERMANY, new String[]{"M", "D", "M", "D", "F", "S", "S"}},
        {Locale.FRANCE, new String[]{"L", "M", "M", "J", "V", "S", "D"}},
        {new Locale("no", "NO"), new String[]{"M", "T", "O", "T", "F", "L", "S"}},};
}
 
Example 11
Project: openjdk-jdk10   File: Bug8154797.java   View Source Code Vote up 5 votes
public static void main(String args[]) {
    Bug8154797.generateExpectedValues();
    Locale[] locArr = {new Locale("hi", "IN"), Locale.UK, new Locale("fi", "FI"),
                       Locale.ROOT, Locale.GERMAN, Locale.JAPANESE,
                       Locale.ENGLISH, Locale.FRANCE};
    for (Locale loc : locArr) {
        Bug8154797.compareResources(loc);
    }
}
 
Example 12
Project: Note   File: AddListActivity.java   View Source Code Vote up 4 votes
public String getDueDate() {
    String myFormat = "dd/MM/yyyy HH:mm";
    SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);
    return sdf.format(myCalendar.getTime());
}
 
Example 13
Project: Note   File: AddNoteActivity.java   View Source Code Vote up 4 votes
public String getDueDate() {
    String myFormat = "dd/MM/yyyy HH:mm";
    SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);
    return sdf.format(myCalendar.getTime());
}
 
Example 14
Project: Note   File: EditNoteActivity.java   View Source Code Vote up 4 votes
public String getDueDate() {
    String myFormat = "dd/MM/yyyy HH:mm";
    SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);
    return sdf.format(myCalendar.getTime());
}
 
Example 15
Project: Note   File: EditListActivity.java   View Source Code Vote up 4 votes
public String getDueDate() {
    String myFormat = "dd/MM/yyyy HH:mm";
    SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);
    return sdf.format(myCalendar.getTime());
}
 
Example 16
Project: parabuild-ci   File: MonthDateFormat.java   View Source Code Vote up 4 votes
/**
 * Some test code.
 * 
 * @param args  ignored.
 */
public static void main(String[] args) {
    MonthDateFormat mdf = new MonthDateFormat(Locale.UK, 2);
    System.out.println("UK:");
    System.out.println(mdf.format(new Month(1, 2005).getStart()));      
    System.out.println(mdf.format(new Month(2, 2005).getStart()));      
    System.out.println(mdf.format(new Month(3, 2005).getStart()));      
    System.out.println(mdf.format(new Month(4, 2005).getStart()));      
    System.out.println(mdf.format(new Month(5, 2005).getStart()));      
    System.out.println(mdf.format(new Month(6, 2005).getStart()));      
    System.out.println(mdf.format(new Month(7, 2005).getStart()));      
    System.out.println(mdf.format(new Month(8, 2005).getStart()));      
    System.out.println(mdf.format(new Month(9, 2005).getStart()));      
    System.out.println(mdf.format(new Month(10, 2005).getStart()));     
    System.out.println(mdf.format(new Month(11, 2005).getStart()));     
    System.out.println(mdf.format(new Month(12, 2005).getStart()));  
    System.out.println();

    mdf = new MonthDateFormat(Locale.GERMANY, 2);
    System.out.println("GERMANY:");
    System.out.println(mdf.format(new Month(1, 2005).getStart()));      
    System.out.println(mdf.format(new Month(2, 2005).getStart()));      
    System.out.println(mdf.format(new Month(3, 2005).getStart()));      
    System.out.println(mdf.format(new Month(4, 2005).getStart()));      
    System.out.println(mdf.format(new Month(5, 2005).getStart()));      
    System.out.println(mdf.format(new Month(6, 2005).getStart()));      
    System.out.println(mdf.format(new Month(7, 2005).getStart()));      
    System.out.println(mdf.format(new Month(8, 2005).getStart()));      
    System.out.println(mdf.format(new Month(9, 2005).getStart()));      
    System.out.println(mdf.format(new Month(10, 2005).getStart()));     
    System.out.println(mdf.format(new Month(11, 2005).getStart()));     
    System.out.println(mdf.format(new Month(12, 2005).getStart()));  
    System.out.println();
    
    mdf = new MonthDateFormat(Locale.FRANCE, 2);
    System.out.println("FRANCE:");
    System.out.println(mdf.format(new Month(1, 2005).getStart()));      
    System.out.println(mdf.format(new Month(2, 2005).getStart()));      
    System.out.println(mdf.format(new Month(3, 2005).getStart()));      
    System.out.println(mdf.format(new Month(4, 2005).getStart()));      
    System.out.println(mdf.format(new Month(5, 2005).getStart()));      
    System.out.println(mdf.format(new Month(6, 2005).getStart()));      
    System.out.println(mdf.format(new Month(7, 2005).getStart()));      
    System.out.println(mdf.format(new Month(8, 2005).getStart()));      
    System.out.println(mdf.format(new Month(9, 2005).getStart()));      
    System.out.println(mdf.format(new Month(10, 2005).getStart()));     
    System.out.println(mdf.format(new Month(11, 2005).getStart()));     
    System.out.println(mdf.format(new Month(12, 2005).getStart()));  
    System.out.println();
    
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
    sdf.setNumberFormat(null);
    System.out.println(sdf.equals("X"));
}
 
Example 17
Project: SamaGamesCore   File: CommandLag.java   View Source Code Vote up 4 votes
public CommandLag(APIPlugin plugin)
   {
	super(plugin);

       this.dateFormat = new SimpleDateFormat("dd/MM/yyyy à HH:mm:ss", Locale.FRANCE);
}