js 从数值秒转换为 时间单位 函数 fSecondToTime

类别: Javascript, function
标签: js, fSecondToTime, date
摘要: ..
正文:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <!-- DW6 -->
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>shawl.qiu template</title>
  7. <script type="text/javascript">
  8. //<![CDATA[
  9.  onload = 
  10.   function()
  11.   {
  12.    alert(fNumToTime(258));
  13.   }
  14.   
  15.   function fSecondToTime(iIpt)
  16.   {// shawl.qiu script
  17.    var dt1 = new Date(0,0,0,0,0,iIpt);
  18.    return dt1.toLocaleTimeString();
  19.   } // end function fSecondToTime
  20. //]]>
  21. </script>
  22. </head>
  23. <body>

  24. </body>
  25. </html>


文章相关信息:
主题: js 从数值秒转换为 时间单位 函数 fSecondToTime
发表者: shawl.qiu
电子邮件: shawl.qiu@gmail.com
QQ: 908202921
MSN: btbtd@msn.com
Homepage: http://www.btbtd.org/
Blog: http://blog.csdn.net/btbtd/
发表日期: 2007-5-11 16:39:30
更新日期: 2007-5-11 16:39:30
来源引用: shawl.qiu CSharp DotNet 个人资料管理系统
引用本页: http://gi.2288.org/mod/code/display/Default.aspx?aid=407
关闭
Google
搜索WWW
搜索www.btbtd.org
搜索blog.csdn.net
Powered by shawl.qiu © 2008-2010 the shawl.qiu Javascript Kits
Copyright © 2008-2010 by shawl.qiu