Skip to content

Instantly share code, notes, and snippets.

@marjoballabani
Created June 13, 2016 14:20
Show Gist options
  • Save marjoballabani/d38c8aaa59d8d3c8293d24e2014139ba to your computer and use it in GitHub Desktop.
Save marjoballabani/d38c8aaa59d8d3c8293d24e2014139ba to your computer and use it in GitHub Desktop.
GenerateMessageSeq
package com.util;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Project: qpsapi-huawei
* Package: com.util
* Author: Marjo
* Created Date: 02/06/2016 15:29
* This code is copyright (c) 2016 Kreatx
*/
public class GenerateMessageSeq {
/**
* Generate a messageSeq
*
* @return
*/
public static String genereateSeq() {
Date date = new Date();
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmssSS");
return format.format(date);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment