当前位置: 首页>>代码示例>>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;未经允许,请勿转载。