From ac455ff994f6b00f7191e44200c3f12a15fb84d0 Mon Sep 17 00:00:00 2001 From: giberta1 Date: Tue, 21 May 2002 17:11:52 +0000 Subject: [PATCH] Fix Calendar.MONTH strange bug (!), Add version, date and author print out. --- TSLaunch.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/TSLaunch.java b/TSLaunch.java index 91f7f57..d3ca850 100644 --- a/TSLaunch.java +++ b/TSLaunch.java @@ -1,7 +1,7 @@ // $RCSfile: TSLaunch.java,v $ -// $Revision: 1.2 $ +// $Revision: 1.3 $ // $Name: $ -// $Date: 2002/04/26 16:45:37 $ +// $Date: 2002/05/21 17:11:52 $ // $Author: giberta1 $ /* @@ -37,6 +37,10 @@ public class TSLaunch { private String TS_Key = "TIME-STAMP"; 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.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)) + nf3.format( now.get( Calendar.MILLISECOND))); } @@ -293,6 +297,8 @@ public class TSLaunch try { + System.out.println("MQSSave: " + TSLaunch_Tag + " / " + TSLaunch_Date + " / " + TSLaunch_Author); + if( args.length < 2) { System.out.println( "Usage: TSLaunch [-k \"TimeStamp_Key\"] Command_to_Run [...Args...]TimeStamp_Key[...Args...]");