diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-17 15:04:29 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-17 15:04:29 -0700 |
commit | e82ae68634df85b06ff816525aa64a72ac9d8771 (patch) | |
tree | 919d8064fa2f12899486b907d9c0a878f8423cb3 /system/admin/static/common/js/util.js | |
parent | 48f47310204df4cb1bdb5ee8db761ab942b20527 (diff) |
adding partial time helper and hard coding date & time inputs
Diffstat (limited to 'system/admin/static/common/js/util.js')
-rw-r--r-- | system/admin/static/common/js/util.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/admin/static/common/js/util.js b/system/admin/static/common/js/util.js index d45d9e3..1e798d6 100644 --- a/system/admin/static/common/js/util.js +++ b/system/admin/static/common/js/util.js @@ -20,4 +20,15 @@ function replaceBadChars(text) { s = s.replace(/[\u02DC\u00A0]/g, " "); return s; +} + + +// Returns a local partial time based on unix timestamp +function getPartialTime(date) { + var parts = []; + parts.push(date.getHours()) + parts.push(date.getMinutes()) + parts.push(date.getSeconds()) + + return parts.join(":"); }
\ No newline at end of file |