Fix Calendar.MONTH strange bug (!),

Add version, date and author print out.
This commit is contained in:
giberta1 2002-05-21 17:11:52 +00:00
parent 1acba01091
commit ac455ff994

View File

@ -1,7 +1,7 @@
// $RCSfile: TSLaunch.java,v $ // $RCSfile: TSLaunch.java,v $
// $Revision: 1.2 $ // $Revision: 1.3 $
// $Name: $ // $Name: $
// $Date: 2002/04/26 16:45:37 $ // $Date: 2002/05/21 17:11:52 $
// $Author: giberta1 $ // $Author: giberta1 $
/* /*
@ -37,6 +37,10 @@ public class TSLaunch
{ {
private String TS_Key = "TIME-STAMP"; private String TS_Key = "TIME-STAMP";
private String Sub_Args[]; private String Sub_Args[];
private String TSLaunch_Revision = "$Revision: 1.3 $";
private String TSLaunch_Tag = "$Name: $";
private String TSLaunch_Date = "$Date: 2002/05/21 17:11:52 $";
private String TSLaunch_Author = "$Author: giberta1 $";
@ -222,7 +226,7 @@ public class TSLaunch
nf3.setMinimumIntegerDigits(3); nf3.setMinimumIntegerDigits(3);
nf3.setMaximumIntegerDigits(3); nf3.setMaximumIntegerDigits(3);
return( "" + now.get( Calendar.YEAR) + nf2.format( now.get( Calendar.MONTH)) + nf2.format( now.get( Calendar.DAY_OF_MONTH)) return( "" + now.get( Calendar.YEAR) + nf2.format( now.get( Calendar.MONTH) + 1) + nf2.format( now.get( Calendar.DAY_OF_MONTH))
+ nf2.format( now.get( Calendar.HOUR_OF_DAY)) + nf2.format( now.get( Calendar.MINUTE)) + nf2.format( now.get( Calendar.SECOND)) + nf2.format( now.get( Calendar.HOUR_OF_DAY)) + nf2.format( now.get( Calendar.MINUTE)) + nf2.format( now.get( Calendar.SECOND))
+ nf3.format( now.get( Calendar.MILLISECOND))); + nf3.format( now.get( Calendar.MILLISECOND)));
} }
@ -293,6 +297,8 @@ public class TSLaunch
try try
{ {
System.out.println("MQSSave: " + TSLaunch_Tag + " / " + TSLaunch_Date + " / " + TSLaunch_Author);
if( args.length < 2) if( args.length < 2)
{ {
System.out.println( "Usage: TSLaunch [-k \"TimeStamp_Key\"] Command_to_Run [...Args...]TimeStamp_Key[...Args...]"); System.out.println( "Usage: TSLaunch [-k \"TimeStamp_Key\"] Command_to_Run [...Args...]TimeStamp_Key[...Args...]");