Here you can find the source of formatTimestampStart(String timestamp)
Parameter | Description |
---|---|
timestamp | string value representing a timestamp value |
public static String formatTimestampStart(String timestamp)
//package com.java2s; //License from project: Apache License public class Main { /**/*from ww w.j a v a 2s .com*/ * Formats timestamp value to be 13 digits long * * @param timestamp * string value representing a timestamp value * @return timestamp value that is 13 digits long */ public static String formatTimestampStart(String timestamp) { if (timestamp != null && timestamp != "") timestamp = String.format("%013d", Long.parseLong(timestamp)); return timestamp; } }