/*
 * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
 */
package kr.co.zumo.app.lifeplus.util;

import java.text.SimpleDateFormat;
import java.util.Locale;

/**
 * Formatter
 * <pre>
 * </pre>
 *
 * @author 민효동
 * @version 1.0
 * @history 민효동   [2018. 9. 27.]   [최초 작성]
 * @since 2018. 9. 27.
 */
public class Formatter {
  /**
   * 날짜/시간 변환
   *
   * @param timeInMillis millisecond
   * @param pattern      yyyy-MM-dd HH:mm:ss
   * @return 2018-10-30 12:34:56
   */
  public static String format(long timeInMillis, String pattern) {
    return new SimpleDateFormat(pattern, Locale.getDefault()).format(timeInMillis);
  }
}
