Here you can find the source of getTimestamp()
public static String getTimestamp()
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static String timestamp = null; /**// w w w.jav a 2 s . com * Returns a timestamp that is set to the time when DataLoader was started. This allows for the same * timestamp to be used throughout the same session. * * @return The timestamp string */ public static String getTimestamp() { if (timestamp == null) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss"); timestamp = dateFormat.format(new Date()); } return timestamp; } }