當前位置: 首頁>>代碼示例>>Java>>正文


Java Locale.FRANCE屬性代碼示例

本文整理匯總了Java中java.util.Locale.FRANCE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Locale.FRANCE屬性的具體用法?Java Locale.FRANCE怎麽用?Java Locale.FRANCE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在java.util.Locale的用法示例。


在下文中一共展示了Locale.FRANCE屬性的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: AFPDataGrabber

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"));
}
 
開發者ID:ina-foss,項目名稱:afp-api-client,代碼行數:16,代碼來源:AFPDataGrabber.java

示例2: data_date

@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},
    };
}
 
開發者ID:lambdalab-mirror,項目名稱:jdk8u-jdk,代碼行數:24,代碼來源:TCKLocalizedPrinterParser.java

示例3: data_time

@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},
        };
    }
 
開發者ID:lambdalab-mirror,項目名稱:jdk8u-jdk,代碼行數:25,代碼來源:TCKLocalizedPrinterParser.java

示例4: isMoreThanToday

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;
        }
}
 
開發者ID:florent37,項目名稱:Android-Allocine-Api,代碼行數:20,代碼來源:Horaires.java

示例5: setLastDate

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();
	}
}
 
開發者ID:Will30,項目名稱:MonitorYourLAN,代碼行數:13,代碼來源:DataStorage.java

示例6: isSharedFlyweight

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;
}
 
開發者ID:luoyaogui,項目名稱:otter-G,代碼行數:33,代碼來源:ObjectProfiler.java

示例7: load

/**
 * 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;
        }
    }
}
 
開發者ID:IKB4Stream,項目名稱:IKB4Stream,代碼行數:42,代碼來源:WeatherProducerConnector.java

示例8: dayNameData

/**
 * 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"}},};
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:12,代碼來源:TestNarrowMonthNamesAndDayNames.java

示例9: main

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);
    }
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:9,代碼來源:Bug8154797.java

示例10: getDueDate

public String getDueDate() {
    String myFormat = "dd/MM/yyyy HH:mm";
    SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);
    return sdf.format(myCalendar.getTime());
}
 
開發者ID:JeanBarriere,項目名稱:Note,代碼行數:5,代碼來源:AddListActivity.java

示例11: main

/**
 * 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"));
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:58,代碼來源:MonthDateFormat.java

示例12: CommandLag

public CommandLag(APIPlugin plugin)
   {
	super(plugin);

       this.dateFormat = new SimpleDateFormat("dd/MM/yyyy à HH:mm:ss", Locale.FRANCE);
}
 
開發者ID:SamaGames,項目名稱:SamaGamesCore,代碼行數:6,代碼來源:CommandLag.java


注:本文中的java.util.Locale.FRANCE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。