当前位置:首页
开发技术指南» 文章正文
    引言:

 ·如何使用cl.exe和link.exe    »显示摘要«
    摘要: 想用命令行, 如何使用cl.exe和link.exe? 有许多不同目录下的.c,.h文件想独立编译成obj再link起来, 不知如何书写 ......
 ·存储过程中调用函数的问题    »显示摘要«
    摘要: 在存储过程内部需要调用一个sql函数,自己编写的,大致如下: 对入参(int类型)进行判断: if x<10 then y=x*0.05 else if x>=10 and x<100 then y=(x-10)*0.03+10*0.05 else if x>=100 and x<1000 then y=(x-100)*0.01+90*0.03+10*0.05......


如何把一个数,变成按时分秒来表示

如何把一个数,变成按时分秒来表示?并且要保证精度和效率。如:3601秒应该表示成:1小时0分钟1秒。

NO.1   作者: bitiliu

哦?很难吗?  
  public   class   print    
  {  
  public   static   void   main(String[]   args)    
  {  
  int   num   =   78025;  
  int   hour   =   0;  
  int   minute   =   0;  
  int   second   =   0;  
   
  hour   =   num/(60*60);  
  minute   =   (num%(60*60))/60;  
  second   =   (num%(60*60))%60;  
   
  System.out.println(num+"秒="+hour+"小时+"+minute+"分钟+"+second+"秒");  
  }  
  }


    摘要: <% rs.open "select top 6 * from newsdata order by time desc",conn,3 首页公告调用数目 if not rs.eof then rs.movefirst do while not rs.eof %> <tr class="bgx1"> …… </tr&g......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE