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


Java Locale.KOREA屬性代碼示例

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


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

示例1: addHistory

public void addHistory(int songid)
{
    // Regdate
    String format = new String("yyyyMMddHHmmss");
    SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.KOREA);
    String Regdate = sdf.format(new Date());

    // Local Save
    LocalPlayHistory localPlayHistory = new LocalPlayHistory();
    localPlayHistory.uid = songid;
    localPlayHistory.Regdate = Regdate;

    localHistoryManager.addHistory(localPlayHistory);
    localHistoryManager.getHistoryDesending();

    // Remote Server save
    MusicDto musicDto = mMusicManager.getMusicDto(songid+"");
    PlayHistory playHistory = new PlayHistory();
    playHistory.artist = MusicDto.replaceForInput(musicDto.getArtist());
    playHistory.album = MusicDto.replaceForInput(musicDto.getAlbum());
    playHistory.title = MusicDto.replaceForInput(musicDto.getTitle());

    userManager.addHistory(playHistory);
}
 
開發者ID:icaynia,項目名稱:pracler,代碼行數:24,代碼來源:Global.java

示例2: addHistory

public void addHistory(PlayHistory playHistory)
{
    RemoteDatabaseManager rdm = new RemoteDatabaseManager();
    DatabaseReference dr = rdm.getUsersReference();

    String format = new String("yyyyMMddHHmmss");
    SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.KOREA);

    playHistory.Regdate = MusicDto.replaceForInput(sdf.format(new Date()));
    playHistory.artist = MusicDto.replaceForInput(playHistory.artist);
    playHistory.album = MusicDto.replaceForInput(playHistory.album);
    playHistory.title = MusicDto.replaceForInput(playHistory.title);

    dr.child(loginUser.getUid()).child("log").child(playHistory.Regdate).setValue(playHistory);
}
 
開發者ID:icaynia,項目名稱:pracler,代碼行數:15,代碼來源:UserManager.java

示例3: getNowDate

public static String getNowDate()
{
    String format = new String("yyyyMMddHHmmss");
    SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.KOREA);
    String Regdate = sdf.format(new Date());

    return Regdate;
}
 
開發者ID:icaynia,項目名稱:pracler,代碼行數:8,代碼來源:PraclerDate.java

示例4: dateToWeekDateString

public static String dateToWeekDateString(Date date) {
    Calendar cal = Calendar.getInstance(Locale.KOREA);
    cal.setTime(date);
    cal.set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-0W", Locale.KOREA);

    return sdf.format(cal.getTime());
}
 
開發者ID:DSM-DMS,項目名稱:DMS,代碼行數:8,代碼來源:DateUtils.java

示例5: getLastSelectedWeekString

public String getLastSelectedWeekString() {
    // 토요일 기준으로 주 구분
    Calendar calendar = Calendar.getInstance(Locale.KOREA);
    calendar.setTime(mLastSelectedDay);
    calendar.set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy년 M월 W주", Locale.KOREA);
    return sdf.format(calendar.getTime());
}
 
開發者ID:DSM-DMS,項目名稱:DMS,代碼行數:8,代碼來源:CalendarView.java

示例6: checkDate

public static boolean checkDate(String str) {
    boolean dateValidity = true;
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.KOREA); // 20041102101244
    df.setLenient(false);
    try {
        Date dt = df.parse(str);
    } catch (ParseException | IllegalArgumentException pe) {
        dateValidity = false;
    }
    return dateValidity;
}
 
開發者ID:DSM-DMS,項目名稱:DMS,代碼行數:11,代碼來源:QueryUtils.java

示例7: 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

示例8: getDateString

private String getDateString() {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy년 MM월 dd일", Locale.KOREA);
    return sdf.format(mCalendar.getTime());
}
 
開發者ID:DSM-DMS,項目名稱:DMS,代碼行數:4,代碼來源:SlimDatePicker.java


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