com.poscoict.glueframework.util
Class GlueDateFormatUtil

java.lang.Object
  extended by com.poscoict.glueframework.util.GlueDateFormatUtil

public class GlueDateFormatUtil
extends Object

³¯Â¥ ¹× ½Ã°£¿¡ ´ëÇÑ º¯È¯À» ¼öÇàÇϴ Ŭ·¡½º


Constructor Summary
GlueDateFormatUtil()
           
 
Method Summary
static String formatDate(Date date)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.
static String formatDate(int style, Date date)
          ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.
static String formatDate(int style, Locale locale, Date date)
          ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.
static String formatDate(Locale locale, Date date)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.
static String formatDateTime(Date date)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.
static String formatDateTime(int dateStyle, int timeStyle, Date date)
          ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.
static String formatDateTime(int dateStyle, int timeStyle, Locale locale, Date date)
          ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.
static String formatDateTime(Locale locale, Date date)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.
static String formatTime(Date date)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.
static String formatTime(int style, Date date)
          ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.
static String formatTime(int style, Locale locale, Date date)
          ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.
static String formatTime(Locale locale, Date date)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueDateFormatUtil

public GlueDateFormatUtil()
Method Detail

formatDate

public static String formatDate(Date date)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.

Parameters:
date - ³¯Â¥
Returns:
³¯Â¥ ¹®ÀÚ¿­

formatDate

public static String formatDate(Locale locale,
                                Date date)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
date - ³¯Â¥
Returns:
³¯Â¥ ¹®ÀÚ¿­

formatDate

public static String formatDate(int style,
                                Date date)
ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.

Parameters:
style - ³¯Â¥ ½ºÅ¸ÀÏ
date - ³¯Â¥
Returns:
³¯Â¥ ¹®ÀÚ¿­

formatDate

public static String formatDate(int style,
                                Locale locale,
                                Date date)
ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥¸¦ º¯È¯ÇÑ´Ù.

Parameters:
style - ³¯Â¥ ½ºÅ¸ÀÏ
locale - ·ÎÄÉÀÏ
date - ³¯Â¥
Returns:
³¯Â¥ ¹®ÀÚ¿­

formatDateTime

public static String formatDateTime(Date date)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
date - ³¯Â¥ ¹× ½Ã°£
Returns:
³¯Â¥ ¹× ½Ã°£ ¹®ÀÚ¿­

formatDateTime

public static String formatDateTime(Locale locale,
                                    Date date)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
date - ³¯Â¥ ¹× ½Ã°£
Returns:
³¯Â¥ ¹× ½Ã°£ ¹®ÀÚ¿­

formatDateTime

public static String formatDateTime(int dateStyle,
                                    int timeStyle,
                                    Date date)
ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
dateStyle - ³¯Â¥ ½ºÅ¸ÀÏ
timeStyle - ½Ã°£ ½ºÅ¸ÀÏ
date - ³¯Â¥ ¹× ½Ã°£
Returns:
³¯Â¥ ¹× ½Ã°£ ¹®ÀÚ¿­

formatDateTime

public static String formatDateTime(int dateStyle,
                                    int timeStyle,
                                    Locale locale,
                                    Date date)
ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ³¯Â¥ ¹× ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
dateStyle - ³¯Â¥ ½ºÅ¸ÀÏ
timeStyle - ½Ã°£ ½ºÅ¸ÀÏ
locale - ·ÎÄÉÀÏ
date - ³¯Â¥ ¹× ½Ã°£
Returns:
³¯Â¥ ¹× ½Ã°£ ¹®ÀÚ¿­

formatTime

public static String formatTime(Date date)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
date - ½Ã°£
Returns:
½Ã°£ ¹®ÀÚ¿­

formatTime

public static String formatTime(Locale locale,
                                Date date)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
date - ½Ã°£
Returns:
½Ã°£ ¹®ÀÚ¿­

formatTime

public static String formatTime(int style,
                                Date date)
ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
style - ½Ã°£ ½ºÅ¸ÀÏ
date - ½Ã°£
Returns:
½Ã°£ ¹®ÀÚ¿­

formatTime

public static String formatTime(int style,
                                Locale locale,
                                Date date)
ÁÖ¾îÁø ½ºÅ¸ÀÏ¿¡ µû¶ó, Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ½Ã°£À» º¯È¯ÇÑ´Ù.

Parameters:
style - ½Ã°£ ½ºÅ¸ÀÏ
locale - ·ÎÄÉÀÏ
date - ½Ã°£
Returns:
½Ã°£ ¹®ÀÚ¿­


Copyright © 2013–2018 POSCO ICT. All rights reserved.