Java Time Format formatDateTime(String DateTimeStr)

Here you can find the source of formatDateTime(String DateTimeStr)

Description

format Date Time

License

Open Source License

Declaration

public static String formatDateTime(String DateTimeStr) 

Method Source Code

//package com.java2s;
/**//from   w  ww  . j  av a2  s.  c  om
 * Copyright 2003 ZhongTian, Inc. All rights reserved.
 *
 * qingdao tec PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * $Id: DBUtil.java,v 1.1 2006/05/17 09:19:30 wiserd Exp $
 * File:DBUtil.java
 * Date Author Changes
 * March 10 2003 wangdeliang Created
 */

public class Main {
    public static String formatDateTime(String DateTimeStr) {
        if (DateTimeStr != null) {
            return "{ts '" + DateTimeStr + "'}";
        } else {
            return null;
        }
    }
}

Related

  1. format(long time)
  2. format(long time, String timerPrecisionId, boolean round)
  3. format(String format, long time)
  4. formatBenchResult(final String benchName, final int iterationCount, final int benchNumber, final double benchTime)
  5. formatCooldown(long time)
  6. formatDateTime(String s)
  7. formatDateTime(String value)
  8. formatDateTimeString(final String dateTimeString, final boolean wrapForCodeUsage)
  9. formatDelay(long startTime, long endTime)