package com.base.core.utiles;

public class CalcPara {

	public final static TimePattern INNER_TIME_PATTERN=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+0:00");//算法本身的
	
	public final static TimePattern INPUT_TIME_PATTERN_BJ=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+8:00");//传入算法的
	
	public final static TimePattern OUTPUT_TIME_PATTERN_BJ=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+8:00");//传出算法的
	
	public final static TimePattern DB_TIME_PATTERN=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+0:00");//数据库中存的
	
	public final static TimePattern DB_TIME_PATTERN_BJ=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+8:00");//数据库中存的
	
	
	public static void main(String[] args)
	{
//		TimePattern innerTimePattern=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+0:00");//算法本身的
//		
//		TimePattern inputTimePattern=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+8:00");;//传入算法的
//		TimePattern outputTimePattern=new TimePattern("yyyy-MM-dd HH:mm:ss","GMT+8:00");;//传出算法的
//		
//		TimePattern dbTimePattern=new TimePattern("yyyy-MM-dd HH:mm:ss.SSS","GMT+0:00");;//数据库中存的
//		
//		String srcTime="2018-03-13 08:00:00.123";
//		
//		
//		String inputTime=srcTime;
//		
//		String innerTime="";
//		
//		String outputTime="";
//		String dbTime="";
//		//
//		System.out.println("input -> inner");
//		innerTime=DateFormatter.srcTimePattern2DstTimePattern(inputTime,inputTimePattern,innerTimePattern);
//		System.out.println(inputTime);
//		System.out.println(innerTime);
//		
//		//
//		System.out.println("inner -> output");
//		outputTime=DateFormatter.srcTimePattern2DstTimePattern(innerTime,innerTimePattern,outputTimePattern);
//		System.out.println(innerTime);
//		System.out.println(outputTime);
//
//		//
//		System.out.println("inner -> db");
//		dbTime=DateFormatter.srcTimePattern2DstTimePattern(innerTime,innerTimePattern,dbTimePattern);
//		System.out.println(innerTime);
//		System.out.println(dbTime);
		
		
	}
	
}
