function showlocaltime(utcyear,utcmonth,utcday,utchour,utcmin,utcsec)
{
var dateobj=new Date(Date.UTC(utcyear,utcmonth-1,utcday,utchour,utcmin,utcsec));
var lclyear = dateobj.getFullYear();
var lclmonth = dateobj.getMonth()+1;
var lclday = dateobj.getDate();
var lclhour = dateobj.getHours();
var lclmin = dateobj.getMinutes();
var lclsec = dateobj.getSeconds();
document.write(lclyear+'-'+lclmonth+'-'+lclday+' '+lclhour+':'+lclmin+':'+lclsec);
}

function showdifftime(utcyear,utcmonth,utcday,utchour,utcmin,utcsec)
{
var dateobj=new Date(Date.UTC(utcyear,utcmonth,utcday,utchour,utcmin,utcsec));
var todayobj=new Date();
var lclyear = dateobj.getFullYear()-todayobj.getFullYear();
var lclmonth = dateobj.getMonth()-(todayobj.getMonth()+1);
var lclday = dateobj.getDate()-todayobj.getDate();
var lclhour = dateobj.getHours()-todayobj.getHours();
var lclmin = dateobj.getMinutes()-todayobj.getMinutes();
//var lclsec = dateobj.getSeconds()-todayobj.getSeconds();

if (lclmin<0) 
  {lclhour=lclhour-1;
   lclmin=60+lclmin;
  }
if (lclhour<0) 
  {lclday=lclday-1;
   lclhour=24+lclhour;
    }
if (lclday<0)  
  {lclmonth=lclmonth-1;
   lclday=30+lclday;
    }     
if (lclmonth<0)
  {lclyear=lclyear-1;
   lclmonth=12+lclmonth;
    } 
  //document.write('<BR>');  
  if (lclyear<0) {
  document.write('拍卖已经截止'); 
  return 0;
   	}
  if (lclyear>0) { 
  document.write(lclyear+'年'+lclmonth+'月'+lclday+'天 '+lclhour+'小时'+lclmin+'分');
   return 1; }
  else if (lclmonth>0) { 
  document.write(lclmonth+'月'+lclday+'天 '+lclhour+'小时'+lclmin+'分');  
  return 1;}
  else if (lclday>0)  {
  document.write(lclday+'天'+lclhour+'小时'+lclmin+'分');  
  return 1;}
  else if (lclhour>0) {
  document.write(lclhour+'小时'+lclmin+'分');
  return 1;}
}

function  test()
{
var theDate = new Date();		// create Date object with the current date;
var temp = theDate.toGMTString();	// convert date to a GMT string;
//var temp = theDate.toLocaleString();
	
//var theSecondDate = new Date(temp);	// convert string to a Date object
//var theSecondDate= new Date();
//theSecondDate.setTime(Date.parse(temp));
 


var lclyear = theDate.getFullYear();
var lclmonth = theDate.getMonth()+1;
var lclday = theDate.getDate();
var lclhour = theDate.getHours();
var lclmin = theDate.getMinutes();
var lclsec = theDate.getSeconds();

//var theSecondDate= new Date(Date.UTC(lclyear,lclmonth,lclday,lclhour,lclmin,lclsec));

var lclyear1 = theSecondDate.getFullYear();
var lclmonth1 = theSecondDate.getMonth()+1;
var lclday1 = theSecondDate.getDate();
var lclhour1 = theSecondDate.getHours();
var lclmin1 = theSecondDate.getMinutes();
var lclsec1 = theSecondDate.getSeconds();

document.write('<BR>');
document.write(lclyear+'-'+lclmonth+'-'+lclday+' '+lclhour+':'+lclmin+':'+lclsec);
document.write('<BR>');
document.write(temp);
document.write('<BR>');
document.write(lclyear1+'-'+lclmonth1+'-'+lclday1+' '+lclhour1+':'+lclmin1+':'+lclsec1);
}
