Java Resource Message getMessageCreateTime()

Here you can find the source of getMessageCreateTime()

Description

get Message Create Time

License

Open Source License

Declaration

private static String getMessageCreateTime() 

Method Source Code


//package com.java2s;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {

    private static String getMessageCreateTime() {
        Date date = new Date();
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String nowTime = df.format(date);
        return nowTime;
    }// ww  w .j  a  v a 2 s .co  m
}

Related

  1. getMessage(String key, String... fill)
  2. getMessage(String messageKey)
  3. getMessage(String messageKey, Object[] params)
  4. getMessage(String pkg, String name, Object[] args)
  5. getMessage(String value, Object... args)
  6. getMessageFormat(final String bundleKey, final String messageKey, final Locale locale)
  7. getMessageFormattedTime(Date date)
  8. getMessageNoKey(String messageName)
  9. getMessages(final Class cls)