Here you can find the source of convertTS2HHMM(Timestamp timeStamp)
Parameter | Description |
---|---|
timeStamp | a parameter |
public static String convertTS2HHMM(Timestamp timeStamp)
//package com.java2s; /*//from w w w . j a va2s .c o m * @(#)ConversionUtil.java * * Copyright by ObjectFrontier, Inc., * 12225 Broadleaf Lane, Alpharetta, GA 30005, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information * of ObjectFrontier, Inc. You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of * the license agreement you entered into with ObjectFrontier. */ import java.sql.Timestamp; import java.text.SimpleDateFormat; public class Main { protected static SimpleDateFormat onlyHHMM = new SimpleDateFormat("HHmm"); /** * RBC CMD 1.0 * This method is used to Convert Timestamp * to HHMM(HoursMinutes) * @param timeStamp * @return */ public static String convertTS2HHMM(Timestamp timeStamp) { return onlyHHMM.format(timeStamp); } }