Until constant

xiaoxiao2021-03-06  95

Package jsswt.until;

Import java.util.StringTokenizer; import java.sql.timestamp; import laosun.database.dbo;

/ ** *

Title: *

Description: *

Copyright: Copyright (c) 2004 *

Company: * @ Author not attributable * @version 1.0 * /

Public class unitl {public unitl () {}

Public static void main (String [] args) {unitl u = new unitl (); system.out.println (" u.get000 (3)); system.out.println (" u.gettimestamp () }

public String getTimeStamp () {System.out.println ( "" System.currentTimeMillis ()); Timestamp ts = new Timestamp (System.currentTimeMillis ()); String dateStr1 = ts.toString (); System.out.println ( dateStr1); StringTokenizer total = new StringTokenizer (dateStr1, "-"); String year = total.nextToken (); String month = total.nextToken (); String third = total.nextToken (); System.out.println ( " 1999 (inclusive) is later: " third); String afterday = third.substring (2); StringTokenizer afterHour = new StringTokenizer (afterday,": "); StringTokenizer afterDay = new StringTokenizer (third," "); String day = afterDay.nextToken (); String hour = afterHour.nextToken (); String minute = afterHour.nextToken (); String afterSecond = afterHour.nextToken (); String scecond = afterSecond.substring (0); StringTokenizer aftersecond = new StringTokenizer (scecond , "."); String second = afterSecond.nextToken (); string result = year month day hour minute second; string s 1 = result.substring (0, 8); string s2 = result.substring (9); string YMDHMS = S1 S2; return ymdhms;} public string getCurmintimeStamp () {string ret = this.gettimestamp (); return = Ret . Substring (0, 8); RET = RET "000001"; return ret;}

Public string getCurmaxyear () {string ret.substring (); ret= ret.substring (0, 4); string Ret1 = ret.substring (3); REGER.PARSEINT (RET1) 1) Return Ret;}

Public string getcurmaxmonth () {string ret;}; return ret;} public string get;

Public string getcurmaxhour () {string ret;}; Return Ret;

Public string getcurmaxminute () {string return = new string (); return ret;

Public string getcurmaxscecond () {string return = new string (); return ret;

Public string get000 (int LEN) {string ret = new string (); for (int i = 0; i

Public string getCurrentDateFormat () {java.text.dateformat fmt = java.text.dateformat.getdatetimeInstance (); returnofa.Format (new java.util.date ());}

Private string adddate (string closed) {string curr = closedate.substring (5, 6); // format is: 2004-6-12 18:24:45, take the sixth character int month = integer.parseint (curr); if (Month! = 1 && Month! = 9) {// Month = Month Monthnums; if (Month <= 12) {curr = integer.tostring (Month); Closedate = CloseDate.substring (0, 5) Curr CloseDate.substring (6);}}}}}}}

转载请注明原文地址:https://www.9cbs.com/read-104875.html

New Post(0)