Created
June 13, 2016 14:20
-
-
Save marjoballabani/d38c8aaa59d8d3c8293d24e2014139ba to your computer and use it in GitHub Desktop.
GenerateMessageSeq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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