function fnMsToTime(duration) {
var milliseconds = parseInt((duration%1000)/100)
, seconds = parseInt((duration/1000)%60)
, minutes = parseInt((duration/(1000*60))%60)
, hours = parseInt((duration/(1000*60*60))%24)
, days = parseInt(duration/(1000*60*60*24));
hours = (hours < 10) ? "0" + hours : hours; minutes = (minutes < 10) ? "0" + minutes : minutes; seconds = (seconds < 10) ? "0" + seconds : seconds;
return days + "일 " + hours + "시간 " + minutes + "분 " + seconds + "초 " + milliseconds + ' 남음';}
2015년 7월 6일 월요일
[Javascript] milliseconds to time string
2015년 7월 1일 수요일
[cakephp] .htaccess mod_rewrite edit for exclude folder or url
I making cakephp 3.0 web app.
I want to cakephp exclude url for static html folder.
/app/webroot/exclude/some.html
/app/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L]</IfModule>
webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On RewriteCond %{REQUEST_URI} !^/exclude/(.*) # add this Line on default RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]</IfModule>
http://stackoverflow.com/questions/2249885/cakephp-htaccess-mod-rewrite-configuration-to-exclude-a-particular-folder-url
피드 구독하기:
글 (Atom)