TimeStamp
import java.io.File;
import
java.io.IOException;
import
java.text.SimpleDateFormat;
import
java.util.Locale;
import
javax.swing.JOptionPane;
import
jxl.*;
import
jxl.write.*;
import
jxl.write.Number;
import
jxl.write.biff.RowsExceededException;
import
jxl.read.biff.BiffException;
import
jxl.write.*;
import
Utilityfunction.File_StringCheck;
import
java.util.Date;
public class Test
{
public static void main(String[] args) throws BiffException, IOException, WriteException
{
system.out.print(Time_stamp());
}
public static String Time_stamp()
{
//java.util.Date date = new java.util.Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
return (((dateFormat.format(date)).replace("/", "_")).replace(":", "_")).replace(" ", "_");
}
}
import java.io.File;
import
java.io.IOException;
import
java.text.SimpleDateFormat;
import
java.util.Locale;
import
javax.swing.JOptionPane;
import
jxl.*;
import
jxl.write.*;
import
jxl.write.Number;
import
jxl.write.biff.RowsExceededException;
import
jxl.read.biff.BiffException;
import
jxl.write.*;
import
Utilityfunction.File_StringCheck;
import
java.util.Date;
public class Test
{
public static void main(String[] args) throws BiffException, IOException, WriteException
{
system.out.print(Time_stamp());
}
public static String Time_stamp()
{
//java.util.Date date = new java.util.Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
return (((dateFormat.format(date)).replace("/", "_")).replace(":", "_")).replace(" ", "_");
}
}
No comments:
Post a Comment