File: legacy/php-build/include/sheet/time.js

Recommend this page to a friend!
  Packages of ikhsan   jQuery Calx   legacy/php-build/include/sheet/time.js   Download  
File: legacy/php-build/include/sheet/time.js
Role: Example script
Content type: text/plain
Description: Example script
Class: jQuery Calx
Calculate form input values based on formulas
Author: By
Last change:
Date: 5 months ago
Size: 431 bytes
 

Contents

Class file image Download
sheet.fx.time = function(time){ var $time = time.split(':'), $today = new Date(), $hour = typeof($time[0]) == 'undefined' ? 0 : $time[0], $minute = typeof($time[1]) == 'undefined' ? 0 : $time[1], $second = typeof($time[2]) == 'undefined' ? 0 : $time[2], $result = new Date($today.getFullYear(), $today.getMonth(), $today.getDate(), $hour, $minute, $second); return $result; };