Java String to Time getStringWithTime(String str)

Here you can find the source of getStringWithTime(String str)

Description

get String With Time

License

Apache License

Declaration

public static String getStringWithTime(String str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;
import java.text.*;

public class Main {
    public static String getStringWithTime(String str) {
        DateFormat dateFormat = DateFormat.getTimeInstance();
        return "(" + dateFormat.format(new Date()) + ") " + str;
    }//w ww .j  ava2 s  .c om
}

Related

  1. getExpireTime(String timeStr)
  2. getFormerDate(String dateTime)
  3. getIdByTime(String name)
  4. getMReportTime(String time)
  5. getSignTime(final String stStr)
  6. getSystemTime(String pattern)
  7. getTime(String date)
  8. getTime(String date, String pattern)
  9. getTime(String dateTimeString)